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

Add preliminary support for private dependencies using builtins.fetchGit #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adisbladis
Copy link
Member

@adisbladis adisbladis commented May 29, 2022

Add preliminary support for private dependencies using builtins.fetchGit

Using this API looks like:

buildGoApplication {
  srcOverrides = self: super: {
    "github.com/BurntSushi/toml" = super."github.com/BurntSushi/toml".override { private = true; };
  };
}

Outstanding issues:

Using this API looks like:
``` nix
buildGoApplication {
  srcOverrides = self: super: {
    "github.com/BurntSushi/toml" = super."github.com/BurntSushi/toml".override { private = true; };
  };
}
```

Outstanding issues:
- Nix has issues dealing with short revs ( NixOS/nix#4694 )
- Param passing heuristics to fetchGit needs to be nailed down.
@cstrahan
Copy link

Nice!

Think you might be able to incorporate some of #11 to resolve the full git rev/SHA?

@adisbladis
Copy link
Member Author

I have started looking at adding short rev support to Nix so we don't have to add any more metadata.

@jgresty
Copy link

jgresty commented Sep 21, 2022

Is this patch waiting for upstream changes? Is there any other work that needs doing to support private repos other than what is outlined in this PR?

@pho
Copy link

pho commented Mar 7, 2023

Hi, just bumping this up to see if there is any reply to the previous comment questions :)

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

Successfully merging this pull request may close these issues.

4 participants