How to determine the branch of Github repos with HUGO modules?

Continuing the discussion from Including javascript lib from node modules:

As outlined in the post above, Github repos can be loaded directly from the source with the Hugo modules feature. Not an expert with modules and likewise with Github, I wonder how one can determine the branch loaded? E. g. the Bootstrap module above loads from which is currently on branch “main”. How do I know I’m getting the current release and not loading code in early alpha stage?

Thanks for your replies!

Hugo Modules is backed by Go Modules, so most of that reading material applies, but the general rule is that if you don’t ask for a specific branch/version, you get the latest tagged version (semver). If you want a specific commit/branch, I think the easiest is to edit your go.mod.

Thank you very much for your quick reply!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.