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

Allow hugo mod get -u to resolve "unknown revision" etc. #6825

Closed
bep opened this issue Jan 30, 2020 · 2 comments · Fixed by #6827
Closed

Allow hugo mod get -u to resolve "unknown revision" etc. #6825

bep opened this issue Jan 30, 2020 · 2 comments · Fixed by #6827
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Jan 30, 2020

I'm not sure this is possible, but the below shows a scenario where I have been using non-versioned modules (Git refs) and doing force-pushing ... I would love it if hugo mod get -u could somehow get me out of that situation.

➜  hugo-alpine-test git:(master) hugo mod get -u
hugo: downloading modules …
go: github.com/bep/hugo-jslibs/alpinejs@v0.0.0-20200129213657-ca4c28551e8d: invalid version: unknown revision ca4c28551e8d
hugo: collected modules in 2509 ms
Error: failed to download modules: go command failed: go: github.com/bep/hugo-jslibs/alpinejs@v0.0.0-20200129213657-ca4c28551e8d: invalid version: unknown revision ca4c28551e8d
@bep bep added this to the v0.64 milestone Jan 30, 2020
@bep bep self-assigned this Jan 30, 2020
@bep
Copy link
Member Author

bep commented Jan 30, 2020

This does not seem to be possible, but I have added some improved logging.

bep added a commit to bep/hugo that referenced this issue Jan 30, 2020
@bep bep modified the milestones: v0.64, v0.65 Jan 30, 2020
@bep bep closed this as completed in #6827 Jan 30, 2020
bep added a commit that referenced this issue Jan 30, 2020
bep added a commit that referenced this issue Sep 17, 2021
I had a head scratching moment with this myself, so it's safe to say that others will.

See #6825
@github-actions
Copy link

github-actions bot commented Feb 8, 2022

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 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant