You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the help of @Bricklou, I would create a project an golang project using XMake. Everything is fine but when I would add Zap to the project, I got this error:
zuygui on tetaclax at …/operator via main ( modified=1 untracked=4 ) xmake
checking for platform ... linux
checking for architecture ... x86_64
note: install or modify (m) these packages (pass -y to skip confirm)?
in go:
-> go::go.uber.org/zap latest
please input: y (y/n/m)
y
=> install go::go.uber.org/zap latest .. failed
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
if you want to get more verbose errors, please see:
-> /home/zuygui/Documents/dev/kubercraft/operator/build/.packages/g/go_go.uber.org/zap/latest/cache/installdir.failed/logs/install.txt
error: install failed!
Expected Behavior
XMake should have downloaded and installed the library without any problems.
Xmake Version
2.9.1
Operating System Version and Architecture
Arch Linux
Describe Bug
With the help of @Bricklou, I would create a project an golang project using XMake. Everything is fine but when I would add Zap to the project, I got this error:
Expected Behavior
XMake should have downloaded and installed the library without any problems.
Project Configuration
Additional Information and Error Logs
The error say a
go.mod
is missing during the lib installation, so I think you should put thego.mod
generation before the libraries installation.The text was updated successfully, but these errors were encountered: