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
bundler: 1.14.6 -> 1.16.1 #30881
bundler: 1.14.6 -> 1.16.1 #30881
Conversation
@zimbatm builds fine for me on NixOS too. |
I'm having issues building |
@flokli to you mind changing the base to master? it's not going to be that much to build, ruby packages are quick to build |
I'll look into the issue with mikutter. It might take a few days, since I'm kind of busy right now. |
@zimbatm base is now master again. Feel free to merge :-) |
This will break gitlab probably due to a bug in bundler or our ruby infrastructure, please don't merge until this has been tested! |
@globin Is this still valid with the latest gitlab version bumps? |
@globin Updated PR to |
I rebased this to latest nixpkgs-unstable. The gitlab service module still seems to be broken on current nixpkgs-unstable - at least the corresponding VM test fails, and I'm unable to get a new gitlab set up via the nixos module either. So I don't really see how merging this breaks gitlab more than it currently already is. |
We should probably remove gitlab from the package set. It's a large piece of software with all sorts of dependencies and ruby omnibus (which is it's own shade of hell). Each dependency change makes the upgrade difficult. Or use the debian package and buildFHS, they already bundle all the dependencies anyways. Personally I would use the Docker image version since it's shipped by gitlab with timely security updates and has been tested thoroughly. |
GitLab is an example of a large project that deserves its own overlay, just like e.g. openstack. |
The fact that Gitlab can keep an important (for us Ruby coders) program from being updated in an OS repo is quite frankly unacceptable. Gitlab should have to conform to the Ruby world, not the other way around. If Gitlab can't be made to work, it should be split into an overlay. Gitlab is a pain to run. I don't know anyone that doesn't just run one of the prepackaged distributions they provide. Might as well bump to |
The alternative is to provide gitlab its own version of bundler? |
If the Gitlab derivation can somehow handle it internally without affecting the rest of the repo, that'd work, I suppose. |
This is not only a problem with Gitlab but something we've seen with other Rails applications like frab, too. Our Ruby/Bundler infrastructure is somehow broken with this new version. Please fix this first before merging this. Regarding Gitlab: I agree that we should probably drop Gitlab. It's a big maintenance burden. |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
Having a different bundler in ruby.devEnv and nixpkgs breaks applications that uses bundler such as |
This isn't bugfix-only, right? (and it seems risky) Why do you think it's worth rushing it into 18.03? |
@vcunat because currently other applications are broken because of this. |
I am not sure, if the bundler in ruby.devEnv could be downgraded though. This would also fix the problem. |
According to the bundler homepage using rubygems 2.2 requires bundler 1.6.1: https://bundler.io/compatibility#bundler-compatibility-with-rubygems (for c-extensions) |
Workaround for vagrant: #36880 |
I have a team that currently can't use 18.03 because of this. What are the next steps to getting this addressed? |
We use overlays for this kind d of thing.
El 22 de marzo de 2018 7:14:22 GMT+00:00, Benjamin Smith <notifications@github.com> escribió:
…I have a team that currently can't use 18.03 because of this. What are
the next steps to getting this addressed?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#30881 (comment)
--
Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.
|
@polynomial see what breaks in our bundler infrastructure, I guess. |
Any news on this? 💎 😭 My development workflow broke because of that. I am stuck at 17.xx for that reason. |
I put this in a private overlay, and it was causing recompiles of all kinds of things, down to libgtk. I have no idea how bundler could possibly cause libgtk to recompile, but removing the overlay fixed it. I think the policy here should be to prefer updating core modules like bundler, and let dependants figure it out. Especially big bad stuff like Gitlab shouldn't cause this to be held back. I run into constant "you've already activated bundler 1.16.x but are trying to activate 1.14.x" while trying to work, even without that overlay. |
Generally, please use the |
I usually load ruby_2_5.devEnv via nix-shell. That would put the correct things on the path?
El 20 de abril de 2018 16:57:19 GMT+01:00, Michael Fellinger <notifications@github.com> escribió:
…Generally, please use the `bundlerEnv{}.wrappedRuby` and also
`bundlerEnv{}.bundler` instead of the global nixpkgs ones. That should
alleviate 99% of the problems.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#30881 (comment)
--
Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.
|
Thanks for the hint with
Do you have a working development derivation that works w/ the current master/unstable and bundix? Also +1 to @mkaito - but priorities tend to shift if you happen to use "big bad stuff" yourself. @globin 👀 |
For that I have no simple solution siche since it seems that your Gemfile
itself had a hard version lock... Any chance you could remove that line
from it?
…On Sat, 21 Apr 2018, 18:13 Maximilian Güntner, ***@***.***> wrote:
@manveru <https://github.com/manveru>
Thanks for the hint with wrappedRuby. However this still gives me
/nix/store/l3lbs5jfxg215hxnvi5rlf3ymyxzf2xf-bundler-1.14.6/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:40:in `block in setup': You have already activated bundler 1.16.1, but your Gemfile requires bundler 1.14.6. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
Do you have a working development derivation that works w/ the current
master/unstable and bundix?
Also +1 to @mkaito <https://github.com/mkaito> - but priorities tend to
shift if you happen to use "big bad stuff" yourself.
@globin <https://github.com/globin> 👀
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30881 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAANs-qqmjRPUposfKkyPVUkWktF4-mmks5tq1qYgaJpZM4QJuia>
.
|
Frankly, I have no idea what is going on. Even if I remove the version lock, the error stays the same. |
@globin could you just push your local fix to some branch, we worked on for gitlab, so that we can continue with this update? |
The gitlab changes have been pushed and should work with this PR now |
I will take a look at #37611 instead. |
Followup of #30871.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)