We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5405385 + ffdd0b5 commit c564ba0Copy full SHA for c564ba0
scripts/build.sh
@@ -15,7 +15,7 @@ GIT_COMMIT=$(git rev-parse HEAD)
15
GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "-dev" || true)
16
17
# Retrieve
18
-VERSION=$(git describe --tags 2>/dev/null || git rev-parse --short HEAD)
+VERSION=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null || git rev-parse --short HEAD)
19
20
# Inject version number
21
LD_FLAGS="-X github.com/cloudskiff/driftctl/pkg/version.version=${VERSION}"
0 commit comments