Skip to content

Commit be63977

Browse files
authored
makefile: correctly inject vcs information into the binary (#650)
1 parent 550a846 commit be63977

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ before:
44
builds:
55
-
66
binary: s5cmd
7-
ldflags: -s -w -X github.com/peak/s5cmd/version.Version={{.Tag}} -X github.com/peak/s5cmd/version.GitCommit={{ .ShortCommit }}
7+
ldflags: -s -w -X github.com/peak/s5cmd/v2/version.Version={{.Tag}} -X github.com/peak/s5cmd/v2/version.GitCommit={{ .ShortCommit }}
88
env:
99
- CGO_ENABLED=0
1010
goos:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ all: clean build test check
55

66
VERSION := `git describe --abbrev=0 --tags || echo "0.0.0"`
77
BUILD := `git rev-parse --short HEAD`
8-
LDFLAGS=-ldflags "-X=github.com/peak/s5cmd/version.Version=$(VERSION) -X=github.com/peak/s5cmd/version.GitCommit=$(BUILD)"
8+
LDFLAGS=-ldflags "-X=github.com/peak/s5cmd/v2/version.Version=$(VERSION) -X=github.com/peak/s5cmd/v2/version.GitCommit=$(BUILD)"
99

1010
.PHONY: build
1111
build:

0 commit comments

Comments
 (0)