bundix icon indicating copy to clipboard operation
bundix copied to clipboard

Fetching private gems via a private git repo

Open lavoiesl opened this issue 6 years ago • 6 comments

Similar to https://github.com/nix-community/bundix/issues/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 https://github.com/NixOS/nixpkgs/issues/71246 for (a lot) more details.

lavoiesl avatar Oct 16 '19 21:10 lavoiesl

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.

emptyflask avatar Jan 29 '20 19:01 emptyflask

@emptyflask is it possible that you have sandboxing disabled?

takeda avatar Jan 29 '20 20:01 takeda

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.

emptyflask avatar Jun 22 '20 21:06 emptyflask

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?

mwdomino avatar Jun 16 '22 15:06 mwdomino

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'

emptyflask avatar Jan 22 '23 03:01 emptyflask