Skip to content

Commit

Permalink
fix 6.2 new naming, again
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Glonek committed Nov 18, 2022
1 parent 511845c commit 47e9c81
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Add support for exporter on `arm`
* Test all `arm` features on clients

#### 4.3.8
* fix naming conventions

#### 4.3.7
* ams exporter fix aws installation
* add client attach option to detach from stdin (do not terminate node command on exit)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.7
4.3.8
13 changes: 11 additions & 2 deletions src/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,18 +323,27 @@ func aeroFindInstallers(baseUrl string, user string, pass string) ([]*dlVersion,
url: baseUrl + line,
}
dlv.isArm = false
if strings.HasSuffix(line, ".arm64.tgz") || strings.HasSuffix(line, ".aarch64.tgz") {
if strings.HasSuffix(line, ".arm64.tgz") || strings.HasSuffix(line, ".aarch64.tgz") || strings.HasSuffix(line, "_arm64.tgz") || strings.HasSuffix(line, "_aarch64.tgz") {
dlv.isArm = true
}
bothArch := false
if !strings.HasSuffix(line, ".x86_64.tgz") && !strings.HasSuffix(line, ".arm64.tgz") && !strings.HasSuffix(line, ".aarch64.tgz") && !strings.HasSuffix(line, ".amd64.tgz") {
if !strings.HasSuffix(line, ".x86_64.tgz") && !strings.HasSuffix(line, ".arm64.tgz") && !strings.HasSuffix(line, ".aarch64.tgz") && !strings.HasSuffix(line, ".amd64.tgz") && !strings.HasSuffix(line, "_x86_64.tgz") && !strings.HasSuffix(line, "_arm64.tgz") && !strings.HasSuffix(line, "_aarch64.tgz") && !strings.HasSuffix(line, "_amd64.tgz") {
bothArch = true
}
line = strings.TrimSuffix(line[strings.LastIndex(line, "-")+1:], ".tgz")
underscore := strings.Index(line, "_") + 1
if len(line) < underscore+1 {
continue
}
line = line[underscore:]
line = strings.TrimSuffix(line, ".x86_64")
line = strings.TrimSuffix(line, ".arm64")
line = strings.TrimSuffix(line, ".aarch64")
line = strings.TrimSuffix(line, ".amd64")
line = strings.TrimSuffix(line, "_x86_64")
line = strings.TrimSuffix(line, "_arm64")
line = strings.TrimSuffix(line, "_aarch64")
line = strings.TrimSuffix(line, "_amd64")
line = strings.TrimLeft(line, "1234567890")
if strings.HasPrefix(line, "ubuntu") {
dlv.distroName = "ubuntu"
Expand Down
2 changes: 1 addition & 1 deletion src/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package main

var version = "v4.3.7"
var version = "v4.3.8"

var simulateArmInstaller = false

0 comments on commit 47e9c81

Please sign in to comment.