Skip to content

Update gosec linter to v2; add .test files to .gitignore #1062

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

Merged
merged 1 commit into from
May 3, 2020

Conversation

theckman
Copy link
Contributor

@theckman theckman commented May 3, 2020

This change updates the gosec linter to its v2 version. It seems like v2
maintained API compatibility for the functionality we use, so we only needed to
update the dependency and imports.

Please note, this does not use a tagged version of gosec and instead is the
latest master commit due to this issue: securego/gosec#470.
Once this issue is resolved we should update gosec to a tagged release.

This also adds a line to the .gitignore file, to ignore the .test output
files that get generated by go test. This could accidentally get left behind,
so no use committing binary files.

Fixes #1052

@theckman theckman mentioned this pull request May 3, 2020
This change updates the `gosec` linter to its v2 version. It seems like v2
maintained API compatibility for the functionality we use, so we only needed to
update the dependency and imports.

Please note, this does not use a tagged version of `gosec` and instead is the
latest `master` commit due to this issue: securego/gosec#470.
Once this issue is resolved we should update `gosec` to a tagged release.

This also adds a line to the `.gitignore` file, to ignore the `.test` output
files that get generated by `go test`. This could accidentally get left behind,
so no use committing binary files.

Fixes golangci#1052
@jirfag jirfag merged commit 60fd647 into golangci:master May 3, 2020
@jirfag
Copy link
Contributor

jirfag commented May 3, 2020

thank you!

theckman added a commit to theckman/golangci-lint that referenced this pull request May 8, 2020
When raising golangci#1062 I noted that the gosec dependency had been upgraded to v2,
but needed to be pulled from `master` due to some issues with the v2.2.0 tagged
release. That was tracked in securego/gosec#470.

They've since cut v2.3.0, so let's update to that tagged release before we
release a new version of golangci-lint.
jirfag pushed a commit that referenced this pull request May 9, 2020
When raising #1062 I noted that the gosec dependency had been upgraded to v2,
but needed to be pulled from `master` due to some issues with the v2.2.0 tagged
release. That was tracked in securego/gosec#470.

They've since cut v2.3.0, so let's update to that tagged release before we
release a new version of golangci-lint.
@ldez ldez added the linter: update version Update version of linter label Dec 7, 2020
@ldez ldez added this to the v1.27 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: update version Update version of linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update gosec linter
3 participants