Skip to content

Commit

Permalink
Fix version retrieve from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie committed Jan 27, 2021
1 parent e9fe6b7 commit df91468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GIT_COMMIT=$(git rev-parse HEAD)
GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "-dev" || true)

# Retrieve
VERSION=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null || git rev-parse --short HEAD)
VERSION=$(git describe --exact-match 2>/dev/null || git rev-parse --short HEAD)

# Inject version number
LD_FLAGS="-X github.com/cloudskiff/driftctl/pkg/version.version=${VERSION}"
Expand Down

0 comments on commit df91468

Please sign in to comment.