| package | package to build | no | — |
| platforms | comma-separated list of platforms to build | no | — |
| tags | comma-separated list of build tags to pass to go compiler | no | — |
| buildvcs | whether to stamp binaries with version control information | no | auto |
| buildmode | which kind of object file is to be built | no | default |
| trimpath | remove all file system paths from the resulting executable | no | true |
| ldflags | flags to pass to the linker | no | -s -w |
| cgo-enabled | set to true to enable cgo | no | "" |
| goprivate | value of GOPRIVATE | no | "" |
| goproxy | value of GOPROXY | no | "" |
| gosumdb | value of GOSUMDB | no | "" |
| version-package | go package to write version to | no | main |
| version-variable | the variable name to write the version to | no | Version |
| version | version to write | no | — |