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

Specify whether/how GitHub github:foo/bar inputs work in fetchTree #4

Open
lf- opened this issue Nov 13, 2024 · 0 comments
Open

Specify whether/how GitHub github:foo/bar inputs work in fetchTree #4

lf- opened this issue Nov 13, 2024 · 0 comments

Comments

@lf-
Copy link
Collaborator

lf- commented Nov 13, 2024

A feature to fetch GitHub inputs with builtins.fetchTree "github:foo/bar" was added to Nix 2.19 without an accompanying release note. It is as-yet unclear to me whether this was an intentional change in specified behaviour or a coincidence. However, it is not implemented in 2.18 or Lix.

~ » ns nixpkgs#nixVersions.nix_2_19
warning: unknown experimental feature 'pipe-operator'
warning: unknown setting 'repl-overlays'
~ » nix eval --impure --expr 'builtins.fetchTree "github:lf-/polkadots"'
warning: unknown experimental feature 'pipe-operator'
warning: unknown setting 'repl-overlays'
{ lastModified = 1621318037; lastModifiedDate = "20210518060717"; narHash = "sha256-pb3g/XpCNsDm/IoYqE+TEKENeMHKSPdc9IYH929dpdQ="; outPath = "/nix/store/6r7sib8bbms8yk7bx7yv89a7a8l50vdr-source"; rev = "cbda8e517807b296f772d93e5045fd7d406e6fad"; shortRev = "cbda8e5"; }

~ » ns nixpkgs#nixVersions.nix_2_18
~ » nix eval --impure --expr 'builtins.fetchTree "github:lf-/polkadots"'
warning: unknown experimental feature 'pipe-operator'
warning: unknown setting 'repl-overlays'
error:
       … while calling the 'fetchTree' builtin

         at «string»:1:1:

            1| builtins.fetchTree "github:lf-/polkadots"
             | ^

       … while fetching the input 'file://github:lf-/polkadots'

       error: unable to download 'file://github:lf-/polkadots': URL using bad/illegal format or missing URL (3) URL rejected: Bad file:// URL
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

1 participant