Skip to content

Commit

Permalink
[YUNIKORN-1430] change go version check in Makefile (#78)
Browse files Browse the repository at this point in the history
Closes: #78

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
wusamzong authored and wilfred-s committed Dec 1, 2022
1 parent 42d2286 commit 9105b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Check license
run: make license-check
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: .go_version
- name: Check license
run: make license-check
- name: Build and Check for changes
run: make check
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Check if this GO tools version used is at least the version of go specified in
# the go.mod file. The version in go.mod should be in sync with other repos.
GO_VERSION := $(shell go version | awk '{print substr($$3, 3, 10)}')
MOD_VERSION := $(shell awk '/^go/ {print $$2}' go.mod)
MOD_VERSION := $(shell cat .go_version)

GM := $(word 1,$(subst ., ,$(GO_VERSION)))
MM := $(word 1,$(subst ., ,$(MOD_VERSION)))
Expand Down

0 comments on commit 9105b7a

Please sign in to comment.