Skip to content

Commit

Permalink
Go version configurable and attempted to be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Som-Som-CC committed Oct 11, 2024
1 parent fa30a79 commit 34f2097
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
MINIMUM_COVERAGE=85
MAXIMUM_COMPLEXITY=15

RUN:=docker run -it --rm -w $(CURDIR) -v $(CURDIR):$(CURDIR):Z gotools:latest
GO_VER?=latest
RUN:=docker run -it --rm -w $(CURDIR) -v $(CURDIR):$(CURDIR):Z gotools:$(GO_VER)
COV=/tmp/test.out

.PHONY: all
Expand All @@ -24,5 +25,5 @@ test:

.PHONY: gotools
gotools:
docker pull golang:latest # Make sure latest is latest
docker pull golang:$(GO_VER) || true # Try to use the latest of the desired Go version
docker build . --tag gotools

0 comments on commit 34f2097

Please sign in to comment.