Hello there.
So I’m trying to use golangci-lint for one of my go project. What I did before was running go get
and waiting for it to install properly. But then I saw that they published a Docker image, so I’m trying to use that with drone.
pipeline:
linter:
image: "golangci/golangci-lint:v1.11.3"
pull: true
commands:
- golangci-lint run
Thing is, when I run drone exec it works just fine. But when I’m trying to push that, I’m facing this:
/bin/sh: 17: golangci-lint: not found
I also tried different approach, changing the command to $${GOPATH}/bin/golangci-lint
(since this docker image has been built using go as its base image), the same error message appeared: /bin/sh: 17: /go/bin/golangci-lint: not found
I don’t understand why that happens. Again, drone exec
works just fine.
Could someone help me ?