Remove gox in favor of go build. (#16353)

Remove gox in favor of go build.

`gox` hasn't had a release to update it in many years, so is missing
support for many modern systems, like `darwin/arm64`.

In any case, we only use it for dev builds, where we don't even use
the ability of it to build for multiple platforms. Release builds use
`go build` now.

So, this switches to `go build` everywhere.

I pulled this down and tested it in Windows as well. (Side note: I
couldn't get `gox` to work in Windows, so couldn't build before this
change.)
This commit is contained in:
Christopher Swenson
2022-07-20 10:44:41 -07:00
committed by GitHub
parent 7cd134614f
commit fa91af91e7
11 changed files with 21 additions and 78 deletions

View File

@@ -11,7 +11,6 @@
package tools
//go:generate go install golang.org/x/tools/cmd/goimports
//go:generate go install github.com/mitchellh/gox
//go:generate go install github.com/client9/misspell/cmd/misspell
//go:generate go install mvdan.cc/gofumpt
//go:generate go install google.golang.org/protobuf/cmd/protoc-gen-go
@@ -20,8 +19,6 @@ package tools
import (
_ "golang.org/x/tools/cmd/goimports"
_ "github.com/mitchellh/gox"
_ "github.com/client9/misspell/cmd/misspell"
_ "mvdan.cc/gofumpt"