{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/2370","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/2370/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/2370/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/2370/events","html_url":"https://github.com/NixOS/nix/issues/2370","id":353926278,"node_id":"MDU6SXNzdWUzNTM5MjYyNzg=","number":2370,"title":"nix-channel --update doesn't change <nixpkgs> if called not as root","user":{"login":"DzmitrySudnik","id":11929875,"node_id":"MDQ6VXNlcjExOTI5ODc1","avatar_url":"https://avatars3.githubusercontent.com/u/11929875?v=4","gravatar_id":"","url":"https://api.github.com/users/DzmitrySudnik","html_url":"https://github.com/DzmitrySudnik","followers_url":"https://api.github.com/users/DzmitrySudnik/followers","following_url":"https://api.github.com/users/DzmitrySudnik/following{/other_user}","gists_url":"https://api.github.com/users/DzmitrySudnik/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitrySudnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitrySudnik/subscriptions","organizations_url":"https://api.github.com/users/DzmitrySudnik/orgs","repos_url":"https://api.github.com/users/DzmitrySudnik/repos","events_url":"https://api.github.com/users/DzmitrySudnik/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitrySudnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T21:01:04Z","updated_at":"2018-08-24T21:01:04Z","closed_at":null,"author_association":"NONE","body":"I'm pointing to the \"nixpkgs https://nixos.org/channels/nixpkgs-unstable\" channel. \r\nAnd noticed that when I do `nix-channel --update` the nix downloads the latest channel `https://releases.nixos.org/nixpkgs/nixpkgs-18.09pre150352.7c826371c49/nixexprs.tar.xz` as expected.\r\nNotice the revision there is 150352.\r\nHowever, then when I use <nixpkgs> in my derivations or just repl, nix still uses an old channel:\r\n`nix-repl> import <nixpkgs>\r\n«lambda @ /nix/store/h3hy2cifanzm6dzs5gi4r6n1n40zyixc-nixpkgs-18.09pre140040.a2981671523/nixpkgs/pkgs/top-level/impure.nix:15:1»`\r\nso the revision is 140040\r\nAnd the same I have in my profile: cat $NIX_PATH/nixpkgs/svn-revision/nixpkgs/svn-revision `140040.a2981671523`.\r\n\r\nHowever when I run `nix-channel --update` as root, the profile gets updated and the latest packages are used everywhere.\r\n\r\nI think it should not require calling nix-channel --update as root. I've also noticed that NIX_PATH environment variable is set to /nix/var/nix/profiles/per-user/**root**/channels, not my user. I haven't changed that variable and got it from a fresh nix installation.\r\n\r\n- version of nix: 2.0.2 and 2.0.4\r\n- system x86_64-darwin\r\n- multiuser nix installation\r\n"}}
{"actor":{"display_login":"DzmitrySudnik"}}