Skip to content

Commit

Permalink
minio: fix version information in binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fgma committed Nov 18, 2023
1 parent 5453909 commit 6727bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cross/minio-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ ENV += GO111MODULE=on
GO_BUILD_ARGS = -tags kqueue -buildvcs=false

GO_LDFLAGS = -s -w
GO_LDFLAGS += -X github.com/minio/mc/cmd.Version=$(PKG_VERS)
GO_LDFLAGS += -X github.com/minio/mc/cmd.ReleaseTag=$(PKG_RELEASE_TAG)
GO_LDFLAGS += -X github.com/minio/mc/cmd.CopyrightYear=$(firstword $(subst -, ,$(PKG_VERS)))
GO_LDFLAGS += -X github.com/minio/mc/cmd.CommitID=$(PKG_COMMIT_ID)
GO_LDFLAGS += -X github.com/minio/mc/cmd.CopyrightYear=$(firstword $(subst -, ,$(PKG_VERS)))

include ../../mk/spksrc.cross-go.mk

Expand Down
4 changes: 3 additions & 1 deletion cross/minio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ ENV += GO111MODULE=on
GO_BUILD_ARGS = -tags kqueue -buildvcs=false

GO_LDFLAGS = -s -w
GO_LDFLAGS += -X github.com/minio/minio/cmd.Version=$(PKG_VERS)
GO_LDFLAGS += -X github.com/minio/minio/cmd.ReleaseTag=$(PKG_RELEASE_TAG)
GO_LDFLAGS += -X github.com/minio/minio/cmd.CopyrightYear=$(firstword $(subst -, ,$(PKG_VERS)))
GO_LDFLAGS += -X github.com/minio/minio/cmd.CommitID=$(PKG_COMMIT_ID)
GO_LDFLAGS += -X github.com/minio/minio/cmd.ShortCommitID=$(shell echo $(PKG_COMMIT_ID) | cut -c1-12)
GO_LDFLAGS += -X github.com/minio/minio/cmd.CopyrightYear=$(firstword $(subst -, ,$(PKG_VERS)))

include ../../mk/spksrc.cross-go.mk

Expand Down

0 comments on commit 6727bb7

Please sign in to comment.