{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/2207","labels_url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/2207/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/2207/comments","events_url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/2207/events","html_url":"https://github.com/JuliaLang/METADATA.jl/pull/2207","id":58845772,"number":2207,"title":"Run version check on all subdirectories of METADATA","user":{"login":"jiahao","id":1732,"avatar_url":"https://avatars.githubusercontent.com/u/1732?v=3","gravatar_id":"","url":"https://api.github.com/users/jiahao","html_url":"https://github.com/jiahao","followers_url":"https://api.github.com/users/jiahao/followers","following_url":"https://api.github.com/users/jiahao/following{/other_user}","gists_url":"https://api.github.com/users/jiahao/gists{/gist_id}","starred_url":"https://api.github.com/users/jiahao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiahao/subscriptions","organizations_url":"https://api.github.com/users/jiahao/orgs","repos_url":"https://api.github.com/users/jiahao/repos","events_url":"https://api.github.com/users/jiahao/events{/privacy}","received_events_url":"https://api.github.com/users/jiahao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T03:41:01Z","updated_at":"2015-02-25T03:48:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/METADATA.jl/pulls/2207","html_url":"https://github.com/JuliaLang/METADATA.jl/pull/2207","diff_url":"https://github.com/JuliaLang/METADATA.jl/pull/2207.diff","patch_url":"https://github.com/JuliaLang/METADATA.jl/pull/2207.patch"},"body":"This PR addresses an edge case observed in #2095 in which a package was\r\nregistered and the user attempted to register versions manually but\r\nplaced sha1 under `\"METADATA/$pkg/versions\"` instead of\r\n`\"METADATA/$pkg/versions/v0.01\"`.\r\n\r\nThe version check test introduced by #2040 is now placed in a new loop\r\nthat runs for each subdirectory of METADATA, regardless of whether each\r\nsubdirectory corresponds to a package entry recognized by `Pkg.Read`.\r\nDoing so allows the tests to detect package entries that are\r\nmisconfigured and hence not recognized as such by the package manager.\r\n\r\nAdditionally, `joinpath` is used consistently instead of manually splicing\r\nstrings together.\r\n\r\nFurthermore, as PEGParser is the only package left without a .jl\r\nextension in #2057, the .jl extension check is now upgraded to an\r\nassertion error except for PEGParser, which is grandfathered in."},"comment":{"url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/comments/75900947","html_url":"https://github.com/JuliaLang/METADATA.jl/pull/2207#issuecomment-75900947","issue_url":"https://api.github.com/repos/JuliaLang/METADATA.jl/issues/2207","id":75900947,"user":{"login":"jiahao","id":1732,"avatar_url":"https://avatars.githubusercontent.com/u/1732?v=3","gravatar_id":"","url":"https://api.github.com/users/jiahao","html_url":"https://github.com/jiahao","followers_url":"https://api.github.com/users/jiahao/followers","following_url":"https://api.github.com/users/jiahao/following{/other_user}","gists_url":"https://api.github.com/users/jiahao/gists{/gist_id}","starred_url":"https://api.github.com/users/jiahao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiahao/subscriptions","organizations_url":"https://api.github.com/users/jiahao/orgs","repos_url":"https://api.github.com/users/jiahao/repos","events_url":"https://api.github.com/users/jiahao/events{/privacy}","received_events_url":"https://api.github.com/users/jiahao/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T03:48:35Z","updated_at":"2015-02-25T03:48:35Z","body":"I ran this new test against dbb7787 and verified that it does correctly fail the test with error\r\n\r\n```\r\nERROR: LoadError: Invalid version number requires found in METADATA/StackedNets/versions\r\n```"}}