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
bundlerApp is unable to install/build gem from a git source #128223
Comments
Can confirm this, I have the same issue trying to package https://github.com/castwide/readapt |
I ran into this issue today. Both in my scenario and the recipe above the issue happens bundlerApp tries to install the man pages of the gem. The directory find is call with doesn't exist. While I don't know the proper way to fix bundlerApp, a work around is to set the installManpages attributes to false. ej. { pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/ff5da29a3ffc3b2a37386f8904b63ca861716d2f.tar.gz) { }
}:
pkgs.bundlerApp
{
pname = "mdl";
gemdir = ./.;
exes = [ "mdl" ];
installManpages = false;
} |
I'm having issue as well, is there any temporal fix atleast? Its annoying, and making my setup not-so-reproducible, I'm bundling puppet and it says: find: '/nix/store/wq6bbkdak5ir3ycv6d2dfjhp3csl3c9r-puppet-7.26.0/lib/ruby/gems/3.1.0/gems/puppet-7.26.0': No such file or directory Its actually been created with rev: at |
Seems like you're right @PuercoPop not installing manpages did somehow fix it, but not sure how you figured out... What I find post trying that is that the problem resides exactly in these lines: nixpkgs/pkgs/development/ruby-modules/bundler-app/default.nix Lines 68 to 73 in 278f364
|
@Animeshz I figured out the workaround by reading the error from nix log However I'm not familiar enough with the process to know what is the proper way to fix this. It seems the reason it fails is because in |
I started a PR for the fix, can you please try building packages from this PR branch? |
Describe the bug
bundlerApp
fails to build when the gem configured in theGemfile
is pointing to a git repository.Gemfile
default.nix
shell.nix
nix-build output
To Reproduce
Run
nix-build
with the configuration posted above.Expected behavior
The package should build like it does when the gem is pointed to a released version.
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: