fuzzyworld

template / commit

Pasta time!

b954384b876164fe29b6b31052be510d1aff1ef2 · Pavel Safronov · 2022-11-15 22:29:38 -0800 · parents 447bec34fd06

Pasta time!
 .gitlab-ci.yml | 4 ++--
 Makefile       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd5ed21..792a000 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,8 +27,8 @@ stages:          # List of stages for jobs, and their order of execution
 prepare:
   stage: prep
   script:
-    - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1
-    - golangci-lint --version
+    - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
+    - $(go env GOPATH)/bin/golangci-lint --version
 
 build-job:       # This job runs in the build stage, which runs first.
   stage: build
diff --git a/Makefile b/Makefile
index 6b4da98..fe95e43 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ build:
 	go build .
 
 lint: build
-	golangci-lint run
+	$(go env GOPATH)/bin/golangci-lint run
 
 test: build
 	mkdir -p test