Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update go.mod go version to 1.17 (NVIDIA#177)
This fixes the following build failure when using vendored dependencies: $ go mod vendor $ make binary cd cmd/dcgm-exporter; go build -ldflags "-X main.BuildVersion=3.1.8-3.1.5" # golang.org/x/sys/unix ../../vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) ../../vendor/golang.org/x/sys/unix/syscall_linux.go:1018:20: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) ../../vendor/golang.org/x/sys/unix/syscall_linux.go:2289:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) ../../vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) ../../vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) make: *** [Makefile:36: binary] Error 1 The command used to update go.mod was: `go mod tidy -go=1.17`. Signed-off-by: Torbjörn Lönnemark <[email protected]>
- Loading branch information