-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
go get -mod=readonly updates go.mod #31273
Comments
it's expected, as
|
@cuonglm thank you for your reply.
Is there a way to achieve this without dirtying my local copy of |
It does if you use
I don't know anyway in current version. Maybe you just run that
|
Thank you for your reply Doing a checkout of |
@davecheney how about disable go modules for that check only:
|
Thank you. I think that will work, I'll try that.
…On Fri, 5 Apr 2019 at 19:41, Cuong Manh Le ***@***.***> wrote:
@davecheney <https://github.com/davecheney> how about disable go modules
for that check only:
GO111MODULE=off go get -mod=readonly honnef.co/go/tools/cmd/staticcheck
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31273 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA7eZXyVpoC5nxF5IhJ0MxmvpcC65ks5vdww-gaJpZM4ceRLC>
.
|
The behavior of An option specifically for installing tools without affecting |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What did you do?
As part of my
make test
target I runWhat did you expect to see?
go.mod
is not modifiedWhat did you see instead?
go.mod
is modified.This is a problem because I do not want to record the version of
honnef.co/go/tools/cmd/staticcheck
that was used in mygo.mod
file. I explicitly want to leave this version floating so that i automatically receive updates to that tool. I want to do this because this tool is not part of my project, its part of the tools I use to test my project, when they are updated, I want to receive those updates withoutgo get
dirtyinggo.mod
every time I run mymake check
targetThe text was updated successfully, but these errors were encountered: