-
Notifications
You must be signed in to change notification settings - Fork 191
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
Running the controller locally fails on Apple silicon #506
Comments
I manage to run the controller locally using Go 1.17 and copying $ go version
go version go1.17.3 darwin/arm64
$ LIBGIT2_FORCE=1 make libgit2
$ sudo cp hack/libgit2/lib/libgit2.1.1.1.dylib /usr/local/lib/libgit2.1.1.dylib
$ LIBGIT2_FORCE=1 make test
ok github.com/fluxcd/source-controller/pkg/git/libgit2 0.651s coverage: 75.4% of statements
$ make run
{"level":"info","ts":"2021-12-04T12:38:49.655+0200","logger":"setup","msg":"starting manager"} |
What is it that points at "Apple Silicon", rather than just your computer specifically? Does it fail for anyone else? |
@aryan9600 has the same issue, so I guess it's not my computer. |
OK, and is there evidence that it's the arch, and not e.g., the OS version? |
My old macbook with Intel used to work (same OS version) but on that machine I've pinned libgit2 to the version that Flux expects. |
👋 I hate to throw in what is likely a distraction to an issue that I'm super unfamiliar with, but despite that: the @libgit2 project would really encourage you not to use OpenSSL on macOS/Darwin. We'll support it, and we feel good about its quality to the extent that we feel good about OpenSSL on any platform, but we're a lot happier with Apple's TLS APIs and would encourage you to use them instead of OpenSSL if they're available. |
my system info: |
that PR works for me. thanks @stefanprodan !! |
@ethomson thanks for the heads up. 🙇 I can assure (and comfort) you with the message that this configuration is used only for development environments, in which we specifically have an alignment because support for certain configurations is heavily dependent on the underlying crypto library, which is important to the core business of our Git related operations. The application itself is only shipped on Linux, in a container image. |
This makes a lot of sense. We don't do a ton of testing on this configuration (macOS + OpenSSL) so I might add a nightly build configuration option for that. 🤔 Thanks for your kindness and humoring me when I dive into your threads without any background. 😁 |
Running
make run
on Apple M1 Max fails with:Configuration:
I've found no way to run the controller locally on Apple M1, my current workaround is to use Docker for Mac:
The text was updated successfully, but these errors were encountered: