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

How to make go mod exclude a list of directories from scanning for dependencies #43191

Closed
fearblackcat opened this issue Dec 15, 2020 · 3 comments

Comments

@fearblackcat
Copy link

fearblackcat commented Dec 15, 2020

I was wondering that how to use go mod if I want to ignore the directories that are demos or examples when I use go mod to download the useless dependencies which not require in my project.
Perhaps go mod should implement the feature just like in glide.yaml

package: github.com/Masterminds/glide
homepage: https://masterminds.github.io/glide
excludeDirs:
- node_modules
...

@mvdan
Copy link
Member

mvdan commented Dec 15, 2020

The Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions.

@mvdan mvdan closed this as completed Dec 15, 2020
@fearblackcat
Copy link
Author

@mvdan This is not question. I think this should be a proposal.

Add new proposal for go mod to support excluding directories in project.

@mvdan
Copy link
Member

mvdan commented Dec 15, 2020

See the previous proposals like #30058 and #37724. You phrased this issue as a question, not as a proposal.

@golang golang locked and limited conversation to collaborators Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants