HUGO

vendorInfo usage

Hello,

I’ve just seen that 0.81.0 introduced vendorInfo into the releaser and version string. For systems that build their own hugo (e.g. FreeBSD Ports, homebrew, etc) should this string be set to something other than gohugoio?

I note that in the release notes for 0.81.0 it states that:

Change version string format and add VendorInfo to help with issue triaging

Which to me suggests that it would be useful information to know where the specific instance of hugo being used was built?

If it is preferable to set it to something custom, is there any preference as to what it would be?

Many thanks,
Ben

Shouldn’t that be the decision of the person(s) compiling the binary? It’s exactly that why there is a “vendor” in the title of the variable. It’s more or less the “badge” for the creator. It’s probably more complicated than that (how to get your vendorinfo string in there) but in the end the vendor is the one creating/publishing the “thing”.

For systems that build their own hugo (e.g. FreeBSD Ports, homebrew, etc) should this string be set to something other than gohugoio ?

Yes, that’s exactly the purpose. For reference:

1 Like

Yes, it is preferable to set to something custom. It’s up to the vendor, but I would prefer

  1. Something distinct (setting it go gohugoio would defeat the purpose)
  2. Something neutral (as in: no profanities …)
1 Like

Thank you both.

Apologies, I missed that PR when I was looking for information about this!

I’m just updating the Makefile for FreeBSD, and when I noticed this new setting it started making me wonder about it. It seems that it would make sense for FreeBSD to set it to freebsd.

Thanks again!

3 Likes

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