Skip to content

Commit

Permalink
github
Browse files Browse the repository at this point in the history
Signed-off-by: weizhoublue <[email protected]>
  • Loading branch information
weizhoublue committed Dec 25, 2024
1 parent b8af99d commit 3832e55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lint_chart_version:

GO_VERSION := $(shell cat GO_VERSION | tr -d '\n' )
GO_IMAGE_VERSION = $(shell echo ${GO_VERSION} | awk -F. '{ z=$$3; if (z == "") z=0; print $$1 "." $$2 "." z}' )
GO_MAJOR_AND_MINOR_VERSION = $(shell echo "${GO_VERSION}" | grep -o -E '^[0-9]+\.[0-9]+' )
#GO_MAJOR_AND_MINOR_VERSION = $(shell echo "${GO_VERSION}" | grep -o -E '^[0-9]+\.[0-9]+' )


## Update Go version for all the components
Expand All @@ -102,12 +102,11 @@ update_workflow_golang:
sed -i 's/go-version: .*/go-version: '${GO_IMAGE_VERSION}'/g' $$fl ; \
done


# Update Go version in go.mod
.PHONY: update_mod_golang
update_mod_golang:
echo "update go.mod to ${GO_MAJOR_AND_MINOR_VERSION}" ; \
sed -i -E 's/^go .*/go '"${GO_MAJOR_AND_MINOR_VERSION}"'/g' go.mod
echo "update go.mod to ${GO_VERSION}" ; \
sed -i -E 's/^go .*/go '"${GO_VERSION}"'/g' go.mod


#-------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/spidernet-io/bmc

go 1.23
go 1.23.0

toolchain go1.23.4

Expand Down

0 comments on commit 3832e55

Please sign in to comment.