Skip to content

Commit

Permalink
Make sure we strip the v from the version…
Browse files Browse the repository at this point in the history
So that we *always* use `X.Y.Z` version scheme, no matter how it is
tagged from the repositories we pull.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Dec 19, 2023
1 parent 27c95a0 commit 9a2ea0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/catalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ func FetchFromExternals(e config.External, client *api.RESTClient) (Catalog, err

for version := range m {
resourcesDownloaldURI := fmt.Sprintf("%s/releases/download/%s/%s", r.URL, version, "resources.tar.gz")
if strings.HasPrefix(version, "v") {
version = strings.TrimPrefix(version, "v")
}
c.Resources[r.Name][version] = resourcesDownloaldURI
}
}
Expand Down

0 comments on commit 9a2ea0b

Please sign in to comment.