{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/26422","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/26422/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/26422/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/26422/events","html_url":"https://github.com/NixOS/nixpkgs/issues/26422","id":233866115,"number":26422,"title":"nix-channel fails for URLs that have no relative part","user":{"login":"xificurC","id":4800719,"avatar_url":"https://avatars0.githubusercontent.com/u/4800719?v=3","gravatar_id":"","url":"https://api.github.com/users/xificurC","html_url":"https://github.com/xificurC","followers_url":"https://api.github.com/users/xificurC/followers","following_url":"https://api.github.com/users/xificurC/following{/other_user}","gists_url":"https://api.github.com/users/xificurC/gists{/gist_id}","starred_url":"https://api.github.com/users/xificurC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xificurC/subscriptions","organizations_url":"https://api.github.com/users/xificurC/orgs","repos_url":"https://api.github.com/users/xificurC/repos","events_url":"https://api.github.com/users/xificurC/events{/privacy}","received_events_url":"https://api.github.com/users/xificurC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-06T11:50:03Z","updated_at":"2017-06-06T11:50:03Z","closed_at":null,"body":"## Issue description\r\n\r\nAny channel that doesn't have a relative URL path makes the nix-channel perl script spit out a couple of errors, then crash.\r\n\r\n### Steps to reproduce\r\n\r\n```bash\r\ndocker run --name fake-channel -d -p 8888:80 nginx\r\n# or a nix-serve equivalent\r\n# or python -m SimpleHTTPServer\r\n# you don't need to serve any actual content\r\n# so no need to conform for channel format for this error\r\nnix-channel --add http://localhost:8888 fake-channel\r\nnix-channel --update\r\n```\r\n\r\nResulting crash:\r\n\r\n```\r\n$ nix-channel --update                               \r\ndownloading Nix expressions from ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-17.09pre108299.ec9a23332f/nixexprs.tar.xz’...\r\ndownloading ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-17.09pre108299.ec9a23332f/nixexprs.tar.xz’... [2767/8656 KiB, 2765.4 KiB/s]\r\ncurl: Remote file name has no length!\r\ncurl: try 'curl --help' for more information\r\nUse of uninitialized value $url in scalar chomp at ~/.nix-profile/bin/nix-channel line 108.\r\nUse of uninitialized value $url in concatenation (.) or string at ~/.nix-profile/bin/nix-channel line 109.\r\n~/.nix-profile/bin/nix-channel: unable to check ‘’\r\n```\r\n\r\n\r\n## Technical details\r\n\r\n```\r\n$ lsb_release -a    \r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.2 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n```\r\n\r\n```\r\n$ nix-env --version              \r\nnix-env (Nix) 1.11.9\r\n```\r\n\r\n```\r\n$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion        \r\n\"17.09pre108299.ec9a23332f\"\r\n```\r\n\r\n```\r\n$ grep build-use-sandbox /etc/nix/nix.conf\r\ngrep: /etc/nix/nix.conf: No such file or directory\r\n```"}}
{"actor":{"display_login":"xificurC"}}