Skip to content

Commit 437901d

Browse files
authored
[main] Bugfix for Independent Agent version parsing (#4412)
* Use proper version from manifest * temp set branch to main for testing PR * remove temp test env var
1 parent 5326332 commit 437901d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-tools/mage/manifest/manifest.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ func DownloadComponentsFromManifest(manifest string, platforms []string, platfor
106106
}
107107

108108
// For resolving manifest package name and version, just use the Major.Minor.Patch part of the version
109-
majorMinorPatchVersion := fmt.Sprintf("%d.%d.%d", parsedManifestVersion.Major(), parsedManifestVersion.Minor(), parsedManifestVersion.Patch())
109+
// for Staging builds, and Major.Minor.Patch-SNAPSHOT for snapshots.
110+
// This eliminates the "+buildYYYYMMDDHHMM" suffix on Independent Agent Release builds
111+
majorMinorPatchVersion := parsedManifestVersion.VersionWithPrerelease()
110112

111113
errGrp, downloadsCtx := errgroup.WithContext(context.Background())
112114
for component, pkgs := range componentSpec {

0 commit comments

Comments
 (0)