Skip to content

Commit

Permalink
Issue #89 update go (#90)
Browse files Browse the repository at this point in the history
* updated to go 1.21 and upgraded dependencies; fixed sed expressions for ldflags in Makefile

* dropreplace

---------

Co-authored-by: Lukas Essig <[email protected]>
Co-authored-by: Tom Straub <[email protected]>
  • Loading branch information
3 people committed Oct 13, 2023
1 parent 46617de commit 366c0c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
build:
go build -o bin/main main.go
go build -v \
-ldflags="-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Version=9.9.9' \
-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Prerelease=alpha' \
-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Build=local' \
-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.BuiltBy=$(shell git config --global --get github.user)' \
-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Date=$(shell date)'"
-ldflags="-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Version=0.1.2' \
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Prerelease=alpha' \
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Build=local' \
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.BuiltBy=$(shell git config --global --get github.user)' \
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Date=$(shell date)'"
rm -rf bin/

update:
Expand Down

0 comments on commit 366c0c2

Please sign in to comment.