fix(build): Version prefix should be "v"
In version.go, we check the "v" or "release-" prefix. Without this one, the version is built from "build info".
This commit is contained in:
@@ -67,7 +67,7 @@ jobs:
|
|||||||
echo "Building binary version $VERSION"
|
echo "Building binary version $VERSION"
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }}\
|
GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }}\
|
||||||
go build -ldflags="-X 'repo.katenary.io/katenary/katenary/internal/generator.Version=$VERSION'" \
|
go build -ldflags="-X 'repo.katenary.io/katenary/katenary/internal/generator.Version=v$VERSION'" \
|
||||||
-trimpath -o dist/katenary-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/katenary
|
-trimpath -o dist/katenary-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/katenary
|
||||||
|
|
||||||
- name: Package (Linux)
|
- name: Package (Linux)
|
||||||
|
Reference in New Issue
Block a user