I attempted to follow the “Compiling from source” instructions found here, Installing Nomad | Nomad by HashiCorp, exactly but make fails with…
[nomad]$ make dev
==> Formatting HCL
==> Removing old development build…
==> Building pkg/linux_amd64/nomad with tags ui …
helper/pool/pool.go:50:18: undefined: atomic.Pointer
helper/pool/pool.go:406:20: undefined: atomic.Pointer
make[1]: *** [pkg/linux_amd64/nomad] Error 2
make: *** [dev] Error 2
Can anyone tell me what I’m doing wrong?
Hi @glenn.horton,
What version of Go do you currently have installed? Currently Nomad is being developed with 1.19 as reflected within this file. The documentation should be updated to reference that file to make this process easier.
Thanks,
jrasell and the Nomad team
I’m using 1.18.3. I’ll try 1.19.
Thanks!
Using go 1.19 doesn’t seem to have helped…
[nomad] make clean
==> Cleaning build artifacts...
[nomad] make dev
==> Formatting HCL
==> Removing old development build…
==> Building pkg/linux_amd64/nomad with tags ui …
helper/pool/pool.go:50:18: undefined: atomic.Pointer
helper/pool/pool.go:406:20: undefined: atomic.Pointer
make[1]: *** [pkg/linux_amd64/nomad] Error 2
make: *** [dev] Error 2
[nomad] go version
go version go1.19 linux/amd64
[nomad]
Hi @glenn.horton sorry for the breakage - this should be fixed as of 21a2afd464 where we correctly set the go.mod
Go requirement to go.1.19
, as we are now using those atomic.Pointer
features introduced in that version.