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

Relative paths aren't FlakeUris #2821

Closed
CSVdB opened this issue May 15, 2019 · 2 comments
Closed

Relative paths aren't FlakeUris #2821

CSVdB opened this issue May 15, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@CSVdB
Copy link
Contributor

CSVdB commented May 15, 2019

No description provided.

@grahamc
Copy link
Member

grahamc commented May 15, 2019

[nix-shell:~/projects/github.com/NixOS/nix]$ ./inst/bin/nix flake info .
error: '.' is not a valid flake reference

[nix-shell:~/projects/github.com/NixOS/nix]$ ./inst/bin/nix flake info $(pwd)
ID:          nix
URI:         /home/grahamc/projects/github.com/NixOS/nix
Description: The purely functional package manager
Branch:      HEADRevision:    0000000000000000000000000000000000000000
Revcount:    6852
Path:        /nix/store/h0q1z9g6isa6m8scv2wxkmqkbgczmh3v-source

@grahamc grahamc transferred this issue from another repository May 16, 2019
@grahamc grahamc added this to the flakes-v2 milestone May 16, 2019
@grahamc grahamc added the flakes label May 16, 2019
@edolstra
Copy link
Member

This almost works. Paths starting with a . work, but .. does not:

$ nix flake info ./../dwarffs
ID:          dwarffs
...

$ nix flake info ../dwarffs
error: '../dwarffs' is not a valid flake reference

@edolstra edolstra assigned CSVdB and unassigned edolstra May 27, 2019
CSVdB pushed a commit to CSVdB/nix that referenced this issue May 28, 2019
@edolstra edolstra closed this as completed Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants