{"action":"closed","issue":{"url":"https://api.github.com/repos/SWI-Prolog/swipl-devel/issues/42","labels_url":"https://api.github.com/repos/SWI-Prolog/swipl-devel/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/SWI-Prolog/swipl-devel/issues/42/comments","events_url":"https://api.github.com/repos/SWI-Prolog/swipl-devel/issues/42/events","html_url":"https://github.com/SWI-Prolog/swipl-devel/issues/42","id":65225512,"number":42,"title":"pack_install: cannot install from local directory containing a version number","user":{"login":"rla","id":1105347,"avatar_url":"https://avatars.githubusercontent.com/u/1105347?v=3","gravatar_id":"","url":"https://api.github.com/users/rla","html_url":"https://github.com/rla","followers_url":"https://api.github.com/users/rla/followers","following_url":"https://api.github.com/users/rla/following{/other_user}","gists_url":"https://api.github.com/users/rla/gists{/gist_id}","starred_url":"https://api.github.com/users/rla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rla/subscriptions","organizations_url":"https://api.github.com/users/rla/orgs","repos_url":"https://api.github.com/users/rla/repos","events_url":"https://api.github.com/users/rla/events{/privacy}","received_events_url":"https://api.github.com/users/rla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T14:31:34Z","updated_at":"2015-03-31T12:44:04Z","closed_at":"2015-03-31T12:44:04Z","body":"Clause https://github.com/SWI-Prolog/swipl-devel/blob/edd23f50cb8f7e65c0a9234c25d422e1b147f38d/library/prolog_pack.pl#L443 should come before the previous clause, otherwise\r\n\r\n```\r\npack_version_file(Pack, Version, URL),\r\ndownload_url(URL)\r\n```\r\n\r\nsucceeds when URL is a local directory containing a version identifier such as `testpack/standalone-0.0.1`. Currently it results in error:\r\n\r\n```\r\nERROR: Domain error: `url' expected, found `'testpack/standalone-0.0.1''\r\n```\r\n\r\nDirectory without a version number inside the name does not cause the issue."}}