Skip to content

Commit

Permalink
feat: improve update-go (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: tkrop <[email protected]>
  • Loading branch information
tkrop authored Dec 21, 2023
1 parent ffe555d commit 20c4fae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else
endif

GOBIN ?= $(shell go env GOPATH)/bin
GOMAKE ?= github.com/tkrop/[email protected].10
GOMAKE ?= github.com/tkrop/[email protected].11
TARGETS := $(shell command -v go-make >/dev/null || \
go install $(GOMAKE) && go-make targets)

Expand Down
2 changes: 1 addition & 1 deletion Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ update-go::
head -n 1 | sed "s/go\(.*\)\.[0-9]*\.$${ARCH}\.tar\.gz/\1/")"; \
else VERSION="$(RUNARGS)"; fi; \
echo "info: update golang version to $${VERSION}"; \
go mod tidy -go=$${VERSION}; \
go get go@latest; go mod tidy -go=$${VERSION}; \
if [ -f $(FILE_DELIVERY) ]; then \
sed -E -i -e "s/$(FILE_DELIVERY_REGEX)/\1$${VERSION}/" $(FILE_DELIVERY); \
fi; \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.10
0.0.11
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/tkrop/go-make

go 1.21

toolchain go1.21.0
toolchain go1.21.5

require github.com/stretchr/testify v1.8.4

Expand Down

0 comments on commit 20c4fae

Please sign in to comment.