strangelove-ventures / heighliner

Repository of docker images for the node software of Cosmos chains
Apache License 2.0
57 stars 51 forks source link

feat: detect "vendor" folder for local builds #291

Closed boojamya closed 1 month ago

boojamya commented 1 month ago

When using the --local flag, this adds support for chains that choose to vendor all their Go dependancies.

Also updates docker.

vimystic commented 1 month ago

Question: The vendor dir will be something one would locally use with their own dependancies? i.e : there is no expectation of a vendor dir living in the repo, correct?

boojamya commented 1 month ago

running go mod vendor will download and place all of the project dependancies in a "vendor" folder. Running go build -mod=vendor will tell go to build the project from the vendor folder instead of fetching all deps from the internet.

I think it is safe to assume that go projects should not have a vendor folder unless they are "vendoring" dependencies.