This repository was archived by the owner on Aug 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ builds:
3
3
- main : ./cmd/atcoderHelper/main.go
4
4
binary : ach
5
5
ldflags :
6
- - " -X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd .version=\
6
+ - " -X github.com.yuchiki.atcoderHelper/internal/ cmd/ach/version .version=\
7
7
{{.Version}}"
8
- - " -X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd .commit=\
8
+ - " -X github.com.yuchiki.atcoderHelper/internal/ cmd/ach/version .commit=\
9
9
{{.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=\
12
12
{{.Date}}"
13
13
goarch :
14
14
- amd64
Original file line number Diff line number Diff line change 1
- VERSION_PATH := github.com/yuchiki/atcoderHelper/cmd/atcoderHelper/cmd
1
+ VERSION_PATH := github.com/yuchiki/atcoderHelper/internal/ cmd/ach/version
2
2
LD_FLAGS := -X '$(VERSION_PATH ) .version=manual-build'
3
3
LD_FLAGS += -X '$(VERSION_PATH ) .commit=$(shell git rev-parse HEAD) '
4
4
LD_FLAGS += -X '$(VERSION_PATH ) .edited=$(shell if git diff HEAD --exit-code > /dev/null; then echo "HEAD"; else echo "edited"; fi) '
You can’t perform that action at this time.
0 commit comments