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

Channel names with `.` or `-` don't work with nix-env -iA attribute paths or don't work with nix-channel --remove #1457

Open
CMCDragonkai opened this Issue Jul 11, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@CMCDragonkai

CMCDragonkai commented Jul 11, 2017

When you create a channel with . or - in its name like: nix-channel --add https://nixos.org/channels/nixos-17.03-small nixos-17.03-small. And then you try to use it with an attribute path like nix-env -iA 'nixos-17.03-small.hello, nix-env complains that it cannot find the attribute path. But if you instead give it a name like A, then it will work!

This is happening on 1.11.15.

@CMCDragonkai CMCDragonkai changed the title from Attribute path no longer working if using NIX_PATH environment instead of channels to Channel names with `-` don't work with attribute paths. Oct 25, 2017

@CMCDragonkai CMCDragonkai changed the title from Channel names with `-` don't work with attribute paths. to Channel names with `-` don't work with nix-env -iA attribute paths. Oct 25, 2017

@CMCDragonkai

This comment has been minimized.

CMCDragonkai commented Oct 25, 2017

This error also affects deletion of channels like nix-channel --remove nixos-17.03-small will just not work.

But removal problem is caused by the - character as well.

@CMCDragonkai

This comment has been minimized.

CMCDragonkai commented Oct 25, 2017

This error is the same error as described here: #1067

@CMCDragonkai CMCDragonkai changed the title from Channel names with `-` don't work with nix-env -iA attribute paths. to Channel names with `.` don't work with nix-env -iA attribute paths. Oct 25, 2017

@CMCDragonkai

This comment has been minimized.

CMCDragonkai commented Oct 25, 2017

To resolve this, channel names should not be allowed to have ., while nix-channel needs to be fixed to allow - in their names.

@CMCDragonkai CMCDragonkai changed the title from Channel names with `.` don't work with nix-env -iA attribute paths. to Channel names with `.` or `-` don't work with nix-env -iA attribute paths or don't work with nix-channel --remove Oct 25, 2017

@shlevy shlevy added the backlog label Apr 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment