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

Do not check for remote modules if main project is vendored #6506

Closed
bep opened this issue Nov 14, 2019 · 1 comment
Closed

Do not check for remote modules if main project is vendored #6506

bep opened this issue Nov 14, 2019 · 1 comment
Assignees
Labels
Bug
Milestone

Comments

@bep
Copy link
Member

@bep bep commented Nov 14, 2019

I have this issue now with the Hugo docs now -- it has all modules vendored, yet I get this:

go: github.com/gohugoio/gohugoioTheme@v0.0.0-20191021162625-2e7250ca437d: invalid version: git fetch -f https://github.com/gohugoio/gohugoioTheme refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/n6/s_85mm8d31j6yctssnmn_g1r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/9e5a73dca9c7e2dc2c7fb3229c58019935bb92360e5180ff8183a1a74535baf5: exit status 128:
        fatal: not a git repository (or any of the parent directories): .git
Error: failed to download modules: go command failed: go: github.com/gohugoio/gohugoioTheme@v0.0.0-20191021162625-2e7250ca437d: invalid version: git fetch -f https://github.com/gohugoio/gohugoioTheme refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/n6/s_85mm8d31j6yctssnmn_g1r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/9e5a73dca9c7e2dc2c7fb3229c58019935bb92360e5180ff8183a1a74535baf5: exit status 128:
        fatal: not a git repository (or any of the parent directories): .git
@bep bep changed the title Delay all "go modules error" Do not check for remote modules if main project is vendored Nov 14, 2019
@bep bep added the Bug label Nov 14, 2019
@bep bep self-assigned this Nov 14, 2019
@bep bep added this to the v0.60 milestone Nov 14, 2019
@bep

This comment has been minimized.

Copy link
Member Author

@bep bep commented Nov 14, 2019

OK, I will fix this by not doing any remote modules checking if the main project is vendored (/_vendor). This will allow for fully standalone project not needing any network connection/Go installed etc.

You can run:

hugo --ignoreVendor

If you want to see how it looks like with what is in go.mod.

@bep bep closed this in 20ec9fa Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.