Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ builds:
- main: ./cmd/atcoderHelper/main.go
binary: ach
ldflags:
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.version=\
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.version=\
{{.Version}}"
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.commit=\
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.commit=\
{{.Commit}}"
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.edited=''"
- "-X github.com.yuchiki.atcoderHelper/cmd/atcoderHelper/cmd.date=\
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.edited=''"
- "-X github.com.yuchiki.atcoderHelper/internal/cmd/ach/version.date=\
{{.Date}}"
goarch:
- amd64
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_PATH := github.com/yuchiki/atcoderHelper/cmd/atcoderHelper/cmd
VERSION_PATH := github.com/yuchiki/atcoderHelper/internal/cmd/ach/version
LD_FLAGS := -X '$(VERSION_PATH).version=manual-build'
LD_FLAGS += -X '$(VERSION_PATH).commit=$(shell git rev-parse HEAD)'
LD_FLAGS += -X '$(VERSION_PATH).edited=$(shell if git diff HEAD --exit-code > /dev/null; then echo "HEAD"; else echo "edited"; fi)'
Expand Down