Skip to content

Commit

Permalink
ok linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart committed Aug 31, 2023
1 parent 67129ff commit 041dc1c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/move_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
)

const (
proName = "enterprise2"
// 1: The version (with a v prefix)
// 2: The "edition". Options: 'oss', 'pro', 'enterprise'.
// 3: The full name. 'grafana', 'grafana-enterprise', 'grafana-pro
Expand Down Expand Up @@ -128,7 +129,7 @@ func RPMHandler(name string) []string {
if edition == "pro" {
// "pro" in this case is called "enterprise2"
fullName = "grafana-enterprise2"
edition = "enterprise2"
edition = proName
// and is in the 'downloads-enterprise2' folder instead of 'downloads'
enterprise2 = "-enterprise2"
// and has an period separator {version}.{arch} instead of {version}_{arch}
Expand Down Expand Up @@ -181,15 +182,15 @@ func DebHandler(name string) []string {
if edition == "pro" {
// "pro" in this case is called "enterprise2"
fullName = "grafana-enterprise2"
edition = "enterprise2"
edition = proName
// and is in the 'downloads-enterprise2' folder instead of 'downloads'
enterprise2 = "-enterprise2"
}

if edition == "pro-rpi" {
// "pro" in this case is called "enterprise2"
fullName = "grafana-enterprise2-rpi"
edition = "enterprise2"
edition = proName
// and is in the 'downloads-enterprise2' folder instead of 'downloads'
enterprise2 = "-enterprise2"
}
Expand Down Expand Up @@ -247,7 +248,7 @@ func TarGZHandler(name string) []string {
if edition == "pro" {
enterprise2 = "-enterprise2"
fullName = "grafana-enterprise2"
edition = "enterprise2"
edition = proName
}
}

Expand Down Expand Up @@ -300,7 +301,7 @@ func DockerHandler(name string) []string {
if opts.Edition != "" {
edition = opts.Edition
if edition == "pro" {
edition = "enterprise2"
edition = proName
}
}

Expand Down

0 comments on commit 041dc1c

Please sign in to comment.