Skip to content

Commit

Permalink
fix: Cotton versioning in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
chonla committed Jul 27, 2024
1 parent fa78bd0 commit 697aee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ forcetest:
forceintegration:
go clean -testcache && go test -tags=integration ./...
coverage:
go clean -testcache && go test -cover ./...
go clean -testcache && go test -cover ./...
build:
go build -ldflags="-X 'main.Version=$(version)'" -o cotton .
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"os"
)

const Version = "1.0.0"
var Version = "1.0.0"

func main() {
var debug bool
Expand Down

0 comments on commit 697aee4

Please sign in to comment.