Compile snowflake: add go get before go build to ensure that go's modules are up to date

After downloading snowflake sources from git, ensure to have current (local) go environment up to date by adding

go get

before

go build

Doesn’t go build ensure that automatically?

I’m definitely no go expert, but I understand the docs this way: “go build” compiles all sources including code from dependencies. But it does not check if those sources are up to date!

IMHO it’s a must to call go get before calling go build.

From go command - cmd/go - Go Packages

go get: Get resolves its command-line arguments to packages at specific module versions, updates go.mod to require those versions, and downloads source code into the module cache.

go build: Build compiles the packages named by the import paths, along with their dependencies, but it does not install the results.

No need to run go get. It’s for when you’re explicitly importing a package. Use “go mod tidy” instead. It automatically installs any required packages