-
Notifications
You must be signed in to change notification settings - Fork 334
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
ruby: add bundler options #579
ruby: add bundler options #579
Conversation
@ryansch could you give this a try? |
Seems like the ruby test is still failing |
Found out the problem. Bundler was internally still using the Ruby version from nixpkgs. |
5d2f661
to
0143d8b
Compare
I ran the following, which succeeds locally. 🤞 that this works for CI as well:
|
It seems that the self-hosted MacOS machine doesn't have xcode installed (or isn't up-to-date?). The native dependencies fail to build:
I think the x86_64-darwin build automatically comes with xcode installed, so it relies on those libraries to build the native dependencies. I'm contemplating whether to include I see that the rust has: devenv/src/modules/languages/rust.nix Line 66 in 4da6478
Should this be part of I'm also wondering whether #507 would already add |
We should rely on xcode not being installed and list all the deps we need. Most likely #507 addresses this, I'll look into it next week. For the YAML schema I was hoping we can render it with strictyaml, how can we keep it in sync with the validation logic. Any ideas? |
That would indeed be the most reliable. I'm guessing people aren't using it this way yet though 😅
Are you referring to making changes in the tests (like awk does currently)? If so, I was thinking maybe all tests could be run inside a Nix build using something like __impure. That way changes to the tests can be reproduced more easily. But maybe I'm not understanding what you meant by validation logic? |
@bobvanderlinden, if you'd like to rebase this over master, I can help iron out the remaining macos issues 🙂 |
I had some other PRs that were becoming problematic with the lack of a MacOS system, so I have put in some time to get my old x86_64 mac working again. 👍 I was able to reproduce the problem by not installing xcode. EDIT: Ah! I just saw your addition of libllvm, I think that fixed it here as well. Nice 👍 I rebased the PR. |
0143d8b
to
e791b1d
Compare
Yeah, sorry, I really should've mentioned that 😂 |
Awesome, thanks! |
Currently there is no way to disable bundler nor is it possible to alter the bundler package.
In addition, there was a problem with the prioritization of the ruby/bundler packages, as modern ruby packages include a bundler executable.
This was reported here: bobvanderlinden/nixpkgs-ruby#72
I also wanted to avoid regressions, so I added a stricter example/test.
Resolves bobvanderlinden/nixpkgs-ruby#72