Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 769088b

Browse files
authored
ach-version-fix (#36)
1 parent 7e8e9a2 commit 769088b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ builds:
33
- main: ./cmd/atcoderHelper/main.go
44
binary: ach
55
ldflags:
6-
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.version=\
6+
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.version=\
77
{{.Version}}"
8-
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.commit=\
8+
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.commit=\
99
{{.Commit}}"
10-
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.edited=''"
11-
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.date=\
10+
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.edited=''"
11+
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.date=\
1212
{{.Date}}"
1313
goarch:
1414
- amd64

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_PATH := github.com/yuchiki/atcoderHelper/cmd/atcoderHelper/cmd
1+
VERSION_PATH := github.com/yuchiki/atcoderHelper/internal/cmd/ach/version
22
LD_FLAGS := -X '$(VERSION_PATH).version=manual-build'
33
LD_FLAGS += -X '$(VERSION_PATH).commit=$(shell git rev-parse HEAD)'
44
LD_FLAGS += -X '$(VERSION_PATH).edited=$(shell if git diff HEAD --exit-code > /dev/null; then echo "HEAD"; else echo "edited"; fi)'

0 commit comments

Comments
 (0)