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

Finish Removing golint #1746

Merged
merged 5 commits into from
Dec 11, 2021
Merged

Finish Removing golint #1746

merged 5 commits into from
Dec 11, 2021

Conversation

rbrtl
Copy link
Contributor

@rbrtl rbrtl commented Dec 10, 2021

What is the problem I am trying to address?

References to golint remain after PR#1744, in documentation and PowerShell scripts.

How is the fix applied?

Removes references and calls, replaces with go vet.

As mentioned in gomods#1743 the Go modules environment flag is set to `off`
in the script which appears to cause a warning message for each module
of the codebase that it is "not in GOROOT".

Set to `auto` as this allows the same build to be run the original way
should someone choose to delete the `go.mod` file from the project root.
Go 1.17 ignores `GO111MODULE` and there are no directories in the
project root called `mock`.
`golint` is deprecated (and frozen) replace with the current `go vet`.
This reported one issue on `main` branch:
```pkg/stash/with_etcd.go:33:28:
loop variable ep captured by func literal```

Fixed loop variable capture with extraction to parameterised anonymous
function passed loop variable and passed in to `errgroup.Go` call.
Removed remaining references to `golint` in dev doc, Makefile,
bash scripts, and powershell build scripts.
Removed `get_dev_tools.sh` and `get_dev_tools.ps1` as they only install
the removed `golint` package.
@rbrtl rbrtl requested a review from a team as a code owner December 10, 2021 20:20
@rbrtl
Copy link
Contributor Author

rbrtl commented Dec 11, 2021

@manugupt1 this finishes off the work of #1744. I neglected to update the Powershell scripts or the documentation.

Copy link
Contributor

@marwan-at-work marwan-at-work left a comment

Choose a reason for hiding this comment

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

Thank you 🙌🏼 🙌🏼

@marwan-at-work marwan-at-work merged commit 567c939 into gomods:main Dec 11, 2021
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