Skip to content
Snippets Groups Projects
Verified Commit b266d316 authored by Bob Van Landuyt :neckbeard:'s avatar Bob Van Landuyt :neckbeard: :sunglasses:
Browse files

feat: support installing goreleaser v2

When the version we want to install is 2 or larger, the module is
namespaced in v2. This change allows us to keep installing v1 from
`github.com/goreleaser/goreleaser`, but for any other version, it will
append `/v$version` to the module path.

This should allow us to update goreleaser to v2 in
https://gitlab.com/gitlab-com/gl-infra/jsonnet-tool/-/merge_requests/152
parent 91f9667c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -57,7 +57,8 @@ goreleaser_validate-fips:
stage: $[[ inputs.validate_stage ]]
needs: []
script:
- go install github.com/goreleaser/goreleaser@v${GL_ASDF_GORELEASER_VERSION}
- module_suffix=$( [[ "${GL_ASDF_GORELEASER_VERSION:0:1}" == "1" ]] && echo "" || echo "/v${GL_ASDF_GORELEASER_VERSION:0:1}" )
- go install github.com/goreleaser/goreleaser${module_suffix}@v${GL_ASDF_GORELEASER_VERSION}
- goreleaser build --snapshot --clean --single-target
 
# For the moment, we perform a single build for FIPS and non-FIPS
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment