Building on Linux doesn't work
mjnovice opened this issue · 1 comments
mjnovice commented
If I try to build my client on linux it breaks
env GOOS=linux GOARCH=amd64 go build -o cliamd64
# github.com/UiPath/Tetris/cmd/cli/client
client/create.go:81:33: undefined: msalAccessor.New
while it works on macOS. Any reasons why ?
chlowell commented
The Linux build (also) requires cgo and a platform specific toolchain:
microsoft-authentication-extensions-for-go/cache/accessor/linux.go
Lines 10 to 12 in 1188132
That error suggests you're building with CGO_ENABLED=0
but setting it to 1
isn't necessarily enough to build--you need the toolchain in any case.