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 · 1 comment · Fixed by #6827
Closed

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

bep opened this issue Jan 30, 2020 · 1 comment · Fixed by #6827
Assignees
Labels
Milestone

Comments

@bep
Copy link
Member

@bep 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 the Enhancement label Jan 30, 2020
@bep bep added this to the v0.64 milestone Jan 30, 2020
@bep bep self-assigned this Jan 30, 2020
@bep

This comment has been minimized.

Copy link
Member Author

@bep 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 in #6827 Jan 30, 2020
bep added a commit that referenced this issue Jan 30, 2020
Fixes #6826
Closes #6825
@fmotrifork fmotrifork mentioned this issue Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.