Skip to content

Commit

Permalink
fix git meta
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed May 31, 2024
1 parent 08b0766 commit a5ce389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PACKAGE ?= github.com/gptscript-ai/gptscript-credential-helpers
VERSION ?= $(shell ./hack/git-meta version)
REVISION ?= $(shell ./hack/git-meta revision)
COMMIT_DATE ?= $(shell .hack/git-meta commit-date)
COMMIT_DATE ?= $(shell ./hack/git-meta commit-date)

GO_PKG = github.com/gptscript-ai/gptscript-credential-helpers
GO_LDFLAGS = -s -w -X ${GO_PKG}/credentials.Version=${VERSION} -X ${GO_PKG}/credentials.Revision=${REVISION} -X ${GO_PKG}/credentials.Package=${PACKAGE} -X main.version=${VERSION} -X main.commit=${REVISION} -X main.date=${COMMIT_DATE}
Expand Down
2 changes: 1 addition & 1 deletion hack/git-meta
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case $1 in
git show -s --format=%cI HEAD
;;
*)
echo "usage: ./hack/git-meta <version|revision>"
echo "usage: ./hack/git-meta <version|revision|commit-date>"
exit 1
;;
esac

0 comments on commit a5ce389

Please sign in to comment.