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

Default repositories for github: fetcher #8205

Open
max-privatevoid opened this issue Apr 11, 2023 · 1 comment
Open

Default repositories for github: fetcher #8205

max-privatevoid opened this issue Apr 11, 2023 · 1 comment
Labels
feature Feature request or proposal

Comments

@max-privatevoid
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Projects on GitHub may opt to use a naming structure in which the GitHub organization's name is the same as the main repository's name. This repetition can lead to unnecessarily long names when using github: flake references, especially on the CLI.

Describe the solution you'd like
As a shortcut, I think Nix should be able to parse github:my-project to be equivalent to github:my-project/my-project, such that nix run github:my-project#package1 will download from the repository github.com/my-project/my-project and run the package attribute package1.

Describe alternatives you've considered
The obvious alternative is the flake registry, but that comes with its own drawbacks:

  • need to request inclusion of my project in the registry
  • can only be used when the user has registries enabled and uses the default registry
    • the flake registry represents an inclusion of external state, which may be against the desires of strongly reproducibility-minded individuals

Additional context
This feature request resulted from the discussion in nixified-ai/flake#21

Priorities

Add 👍 to issues you find important.

@SuperSandro2000
Copy link
Member

Flake URIs have already enough parts you need to know like the query strings and this would break backwards compatibility.

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

No branches or pull requests

2 participants