Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation of golangci-lint #285

Merged
merged 3 commits into from
Jun 7, 2022
Merged

Conversation

carolynvs
Copy link
Contributor

However we were installing golangci-lint before (using their special install script) doesn't work on our CI anymore, or my local machine. I've updated to the most recent version of golangci-lint so that I could test it locally on my arm64 machine, and switch to using go install to install the tool.

I've also updated the code quick to get the make lint target passing again:

  • Run go fmt over project
  • Do not use testing.T helper from an anonymous function

However we were installing golangci-lint before (using their special
install script) doesn't work on our CI anymore, or my local machine.
I've updated to the most recent version of golangci-lint so that I could
test it locally on my arm64 machine, and switch to using go install to
install the tool.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
* Run go fmt over project
* Do not use testing.T helper from an anonymous function

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs marked this pull request as ready for review June 6, 2022 13:58
@carolynvs carolynvs requested a review from vdice June 6, 2022 13:58
We were using go get to install tools during make bootstrap. The way to
install go packages into GOPATH/bin is now go install.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs merged commit 36694c2 into cnabio:main Jun 7, 2022
@carolynvs carolynvs deleted the fix-ci branch June 7, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants