gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.73k stars 7.53k forks source link

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

Closed bep closed 4 years ago

bep commented 4 years ago

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 commented 4 years ago

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

github-actions[bot] commented 2 years ago

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.