Is it still true (due to the way Go works) that one should not use a "vendor" folder in a Hugo project?

I was going to post a link to the Discourse thread, but somewhere bep (I believe) said in an answer that “due to the way Go works” one should not use a directory / folder named “vendor” in a Hugo Project.

I’m just wondering if that is still true? In converting a bootstrap HTML templates for use in Hugo, I often see a “vendor” directory for libraries that one would ordinarily put somewhere in either /assets or /static, for example.

I thought perhaps this was an answer that no longer applied to current Hugo versions, but thought I would check. Thanks!

https://discourse.gohugo.io/t/hugo-modules-and-php-composer-conflicting-with-vendor-folder/37995/4

Verified with:

hugo v0.100.1-0afb4866e345d31cbbcbab4349e43f1d36122806+extended linux/amd64 BuildDate=2022-06-01T10:11:48Z VendorInfo=gohugoio
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.18"
1 Like