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 · 2 comments
Closed

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

bep opened this issue Nov 14, 2019 · 2 comments
Assignees
Milestone

Comments

@bep
Copy link
Member

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/[email protected]: 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/[email protected]: 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
Copy link
Member Author

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 as completed in 20ec9fa Nov 14, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
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

1 participant