-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 add local module to vendor? #29079
Comments
i had read some issue, but none of them solve the problem. |
The See also #28835. |
What about it doesn't work? |
@bcmills I try add |
@bcmills Most of my friends write go in commercial project, some of depence common modules is place in private vcs just like |
Did you also add |
Configuration of private repose is independent of |
@bcmills You are right, i try to add
than i can build with But when i require new module in So i think there has three way to fix this case:
|
@bcmills I try to add
than i execute |
I would not expect |
@bcmills So ho to vendor a local module? |
For now, i turn back to use |
Vendoring and local modules are two separate things. You can put a local module in a directory within the same repository, or you can put it somewhere in the local filesystem, or really any place that isn't in the |
If the official don't want |
Precision is important.
|
|
Most developer who use depence common modules may not have the permission to make the common private golang modules for some reason:
I had give up to use |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes, and i used the latest version
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go mod init
go.mod
go build -mod vendor
What did you expect to see?
I just want
go mod
support i add local module and build success.What did you see instead?
Before i used
go dep
which support ignored can solve the problem. Nowgo mod
exclude not work for this.The text was updated successfully, but these errors were encountered: