Repository navigation
consul-ui: fix build - #41239
consul-ui: fix build#41239jbboehr wants to merge 2 commits into
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.
| @@ -0,0 +1,44 @@ | |||
| diff --git a/ui/Gemfile.lock b/ui/Gemfile.lock | |||
There was a problem hiding this comment.
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.
You need both otherwise bundler tries to download and install a different version in dist.sh
|
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-sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)