-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
consul-ui: fix build #41239
consul-ui: fix build #41239
Conversation
No, probably not, because I'm using that as well and with my latest rebase on
After some significant confusion I figured out that the culprit is this in consul:
First they hide all errors (like missing dependencies). Then call I really think we should patch that line out in nix or ask upstream to do it, because the
I also had some big trouble finding out how to fix that as it isn't really documented for The trick (which you obviously know given the PR, so I'm writing this mainly for myself and others) is to do what it says on https://nixos.org/nixpkgs/manual/#sec-language-ruby, but in the Not obvious at all. I think we should (in |
Why is that? |
... to a version that can handle Consul >= 1.0. See NixOS#35602 (comment) Upgrading consul also requires upgrading the Ruby deps, see NixOS#41239 (comment) Also add instructions on how to do that, and a small patch to improve the error message when it is forgotten. I had to manually bump the Ruby `json` dependency from the generated `1.8.2` to `1.8.5` to work around the ‘rb_cFixnum’ undeclared problem as shown on https://community.bitnami.com/t/gem-file-dependencies/50552.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that?
Ah, I see, it's #41238, sorry.
pkgs/servers/consul/ui-lock.patch
Outdated
@@ -0,0 +1,44 @@ | |||
diff --git a/ui/Gemfile.lock b/ui/Gemfile.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this patch instead of updating https://github.com/NixOS/nixpkgs/blob/deeeb5002c1ca27ca685e191f659e11f5ff01f4f/pkgs/servers/consul/gemset.nix with bundix
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need both otherwise bundler tries to download and install a different version in dist.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've managed to fix it on the master branch, I'll open a new PR shortly. |
Motivation for this change
consul-ui is currently failing to build in 18.03 and master (#41238). This is a PR against the release-18.03 branch because the fix currently does not work on the master branch.
I'm not sure if you allow PRs against the release branches, in which case feel free to close this.
Alternatively, you could merge into master anyway and backport to 18.03, since it's already broken in master.
I have not evaluated if #35602 fixes the issue.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)