-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make lint
fails on macos
#4814
Comments
@baude PTAL |
We dont support native compilation on osx ... only cross-compile from linux. Varlink is one reason. @ssbarnea how do you want to deal with this/go from here. |
Linting must work from any platform likely to support contributions from, even if compilation would be cross-compiled. I was planning to do something about it myself but got busy with other stuff. Keep it open until someone fixes it. I would consider acceptable even if only pre-commit runs on macos and the rest is skipped. The more interesting aspect is that pre-commit works but make never reaches it because chokes at the dependency target it cannot build. If any idea about how to make that target optional for macos it would be great. PS. In fact make could start some containers and do the build with them for unsupported platforms, but this would require lots of changes. If you tell me which patch to take, I can look into making a PR to address it. |
Running the `varlink_generate` make target on non-Linux machines is not supported, so restrict it to Linux only. Fixes: containers#4814 Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg this issue seem to still exist !
|
-> #5162 Thanks for the ping! |
From a fresh install of Fedora 33 Beta and a fresh clone of the repo, `make` fails with the following error when Go modules are disabled: # Only generate the varlink code on Linux (see issue containers#4814). GO111MODULE=off go generate ./pkg/varlink/... ../../vendor/github.com/varlink/go/cmd/varlink-go-interface-generator/main.go:12:2: cannot find package "github.com/varlink/go/varlink/idl" in any of: /usr/lib/golang/src/github.com/varlink/go/varlink/idl (from $GOROOT) /home/test/src/podman/_output/src/github.com/varlink/go/varlink/idl (from $GOPATH) pkg/varlink/generate.go:3: running "go": exit status 1 make: *** [Makefile:646: pkg/varlink/iopodman.go] Error 1 Signed-off-by: Jordan Christiansen <[email protected]>
The text was updated successfully, but these errors were encountered: