Skip to content
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

Fetching private gems via a private git repo #69

Open
lavoiesl opened this issue Oct 16, 2019 · 5 comments
Open

Fetching private gems via a private git repo #69

lavoiesl opened this issue Oct 16, 2019 · 5 comments

Comments

@lavoiesl
Copy link

Similar to #61, but when via a git repo, not a gems source.

The issue is that nix-prefetch-git does not honour the user's credentials and there isn't any way to tell bundix how to fetch those private repos.

See NixOS/nixpkgs#71246 for (a lot) more details.

@emptyflask
Copy link

Is this only an issue on MacOS? I'm running into it on my laptop, but I didn't have this problem on my NixOS machine for the same project for some reason.

@takeda
Copy link

takeda commented Jan 29, 2020

@emptyflask is it possible that you have sandboxing disabled?

@emptyflask
Copy link

My mistake, I'm seeing this under NixOS now... I'm actually not sure why I was able to install sidekiq-pro without problems before.

@mwdomino
Copy link

I'm trying to build shell.nix for a few work projects and am running into this same issue. Creating the baseline shell.nix from https://nixos.wiki/wiki/Packaging/Ruby lets me do a bundle install and happily installs the private gems, but bundix throws up an askpass prompt and an error after the failed auth. We use PATs for repo permissions so an askpass solution wouldn't work for my use case.

Is there any new info on how we may be able to work around this?

@emptyflask
Copy link

It's not a realistic solution for every case, but I've been doing this on my own projects:

gem 'foo', git: 'https://user:[email protected]/emptyflask/foo.git'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants