Skip to content

Conversation

@annarosenthal
Copy link

Fixes golang/go#51262

This change modifies go mod tidy to allow ignoring unused imports by specifying an end-of-line comment containing ignore-unused.

Example:

module mod.com
go 1.14
require example.com v1.0.0
require ignored.com v1.0.0 // ignore-unused

In this example, go mod tidy will remove example.com and will keep ignored.com.

@gopherbot
Copy link
Contributor

This PR (HEAD: dd598ff) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/390254 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Gopher Robot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://go.dev/doc/contribute#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.


Please don’t reply on this GitHub thread. Visit golang.org/cl/390254.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/390254.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Robert Findley:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/390254.
After addressing review feedback, remember to publish your drafts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants