Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Install golangci-lint #15

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Install golangci-lint #15

merged 1 commit into from
Aug 27, 2019

Conversation

abhide
Copy link
Contributor

@abhide abhide commented Aug 21, 2019

circleci/golang:1.12 doesn't come with golangci-lint; install it as part of CI pipeline.
Doing a go get isn't recommeded for CI

@abhide abhide force-pushed the fix_lint branch 3 times, most recently from 438a307 to 0641181 Compare August 22, 2019 00:50
@abhide abhide requested a review from michaelw August 22, 2019 00:52
name: Code Quality
command: make lint
name: Install golangci-lint and check code Quality
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 && make lint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not :)

we can download the script and commit it in a scripts/ dir, and then call it from here. at least we have an audit record of what it did.

also, why not add the download to "make dep"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to scripts directory. changed make lint to install golangci-lint.

circleci/golang:1.12 doesn't come with golangci-lint; install it as part of CI pipeline.
@michaelw michaelw merged commit ed05ac3 into master Aug 27, 2019
@michaelw michaelw deleted the fix_lint branch August 19, 2021 01:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants