Open vinceyoumans opened 10 months ago
After the initial import, you can:
hugo mod get github.com/foo/bar@somebranch
But it would be convenient to handle that in config.
I agree that it would be useful, but I'm not sure how simple it is to implement. The operations we do on regular Hugo builds are, I think:
go mod download
go list -m -json
Both of the above operates on the content of your go.mod/work file(s).
Use of MODULES hosted on Git repos is an awesome feature. For example...
In this code snip, content is maintained separately but still mounted.
PROBLEM
Only the MAIN branch of the above CONTENT repo in imported. The
branch = 'main'.
does nothing. But It would be very cool if we could include BRANCH into the Path.
I would be very happy to do this feature if I can get some feed back on what would need to be done or if I am missing something.
cheers