-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Remove locked option in std_cargo_args if CPU.arch is arm64 #10205
Conversation
There are lots of errors in formulae depending rust on arm64 because homebrew installs older dependent cargo packages. It is because std_cargo_args uses locked option and Cargo.lock.
Doesn't the If so, then I don't think this is acceptable, even just for ARM. Taking out the The better solution might be to ask upstream to cut new releases with updated |
Yes. |
Do we know that all of them fail due to stale That said, I'm open to hearing others' opinions on this. |
This is my view as well. If the build is failing on ARM due to older dependencies, then affected users should create an issue upstream (making them aware). As @carlocab mentioned, the For what it's worth, I pushed to add the |
No. I confirmed some errors in formulae was because of Cargo.lock but not all. |
Yes, I agree that we need an intelligent way of dividing the work on this. I think we could try to enlist user help by opening an issue asking for help to check if Not sure how to give those users a version of Rust to test with other than asking them to compile the version of the formula in your PR, which would be a pretty big barrier to getting help. Will the above idea work if someone installed the appropriate version of the Rust compiler using |
Alternatively, we could script replacing I think this should identify the formulae with stale lock files. We can then use that information to open the appropriate upstream issues. (We could devise some other procedure for splitting the work on that one.) |
yeah, we can do that as workaround or submit patches to the upstream. |
Just to be clear, I believe this suggestion was only intended as a way of identifying formulae that fail to build due to the dependencies in the |
Oh, I don't mean it as a work-around, since I don't think formulae that need the |
yeah, I am the same page of not disabling |
We definitely want to keep dependencies pinned, for rust like for everything else in homebrew. Reproducible builds are important. |
Thank you for your replying. |
@shigemk2 the actual solution is for these formulas to ship a new release with up-to-date dependencies. If we remove the lock files, we might be shipping things that aren't working, or will break, and we have no control. Each upstream should determine what they want as dependencies, and if those aren't compatible with Apple Silicon, then it's simply not supported on Apple Silicon. |
@fxcoudert don't worry, that's just a temporary change in order to identify the rust-based formulae with stale lock files. See #10205 (comment) |
There are lots of errors in formulae depending rust on arm64
because homebrew installs older dependent cargo packages.
It is because std_cargo_args uses locked option and Cargo.lock.
Homebrew/homebrew-core#68089
brew style
with your changes locally?(same master branch)brew typecheck
with your changes locally?(same master branch)brew tests
with your changes locally?(same master branch)brew man
locally and committed any changes?(same master branch)