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
[not our bug] nixpkgs: Minio do not build on macOS with Go modules #10188
Comments
We build without CGO @hauleth you should set
also why are you trying to build from source? isn't our release binary enough? https://dl.minio.io/server/minio/release/darwin-amd64/ |
@harshavardhana I am using Nix package manager that builds it for me. |
With
|
You missed passing |
can this not package pre-existing binaries? - building binaries outside of our builds will not be supported by MinIO @hauleth because we sign our binaries and they are trusted. |
@harshavardhana Nix requires reproducibility and I do not know if this is guaranteed. I am also using the version from the official repo at https://github.com/nixos/nixpkgs which seems to using building from source approach instead of fetching already compiled binaries (as with most of the other packages) to be able to make it point to proper external libraries when needed. |
That may be for other packages, but that is a guarantee we cannot provide our users. These binaries cannot be trusted by us and not verified by us. If necessary we can take the ownership here and provide supported builds. |
@hauleth why would you not use |
Because HomeBrew is an abomination of package manager. Being popular doesn't mean that it is a good solution. Nix gives me features that HomeBrew cannot and will not support (for example I can, and I have, written quick derivation to use precompiled binary, however I would still like to find a solution to this problem for the future. |
That is quite a loaded opinion @hauleth - I don't think we have an interest in supporting source compiled packages which we cannot certify for our users.
The problem is simple use |
Modified build command and flags to allow successful build on Darwin systems. Based on flags in GitHub issue from minio project [0] [0]: minio/minio#10188 (comment)
Modified build command and flags to allow successful build on Darwin systems. Based on flags in GitHub issue from minio project [0] [0]: minio/minio#10188 (comment) (cherry picked from commit 5e1cb57)
Modified build command and flags to allow successful build on Darwin systems. Based on flags in GitHub issue from minio project [0] [0]: minio/minio#10188 (comment) (cherry picked from commit 5e1cb57)
Current Behavior
Fails to build with:
Possible Solution
Update Minio to use newest version of
gopsutil
to include this patch shirou/gopsutil#889Steps to Reproduce (for bugs)
Try to build Minio on macOS with Nix.
Your Environment
uname -a
):Darwin 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin
The text was updated successfully, but these errors were encountered: