Hugo Modules - how to specify tags?

Hi there,

when using hugo modules i was wondering how the downloaded version of the modules is decided and if that information could be added into the documentation.

Observations:

  • When having tags starting with “v” and then following SemVer then these are downloaded
  • When having tags in the SemVer format then these are not downloaded but a pseudo version instead (https://golang.org/cmd/go/#hdr-Pseudo_versions)
  • I haven’t found a way to specific branches or tags

So what i think it does:

  • Get the semantically highest tag version beginning with “v”,
  • Get the semantically highest pre-release tag version beginning with “v”
  • Get the chronologically most recent pseudo-version

Since i don’t use “v” in my versions so far - is there no other way of specifying the tag?

Thanks in advance!

Best Regards, Uli

1 Like