{"action":"created","issue":{"url":"https://api.github.com/repos/inaka/hexer/issues/31","labels_url":"https://api.github.com/repos/inaka/hexer/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/inaka/hexer/issues/31/comments","events_url":"https://api.github.com/repos/inaka/hexer/issues/31/events","html_url":"https://github.com/inaka/hexer/issues/31","id":126033398,"number":31,"title":"HTTP 400 error when using `{vsn, git}` in src/appname.app.src","user":{"login":"davisp","id":19929,"avatar_url":"https://avatars.githubusercontent.com/u/19929?v=3","gravatar_id":"","url":"https://api.github.com/users/davisp","html_url":"https://github.com/davisp","followers_url":"https://api.github.com/users/davisp/followers","following_url":"https://api.github.com/users/davisp/following{/other_user}","gists_url":"https://api.github.com/users/davisp/gists{/gist_id}","starred_url":"https://api.github.com/users/davisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisp/subscriptions","organizations_url":"https://api.github.com/users/davisp/orgs","repos_url":"https://api.github.com/users/davisp/repos","events_url":"https://api.github.com/users/davisp/events{/privacy}","received_events_url":"https://api.github.com/users/davisp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"elbrujohalcon","id":93657,"avatar_url":"https://avatars.githubusercontent.com/u/93657?v=3","gravatar_id":"","url":"https://api.github.com/users/elbrujohalcon","html_url":"https://github.com/elbrujohalcon","followers_url":"https://api.github.com/users/elbrujohalcon/followers","following_url":"https://api.github.com/users/elbrujohalcon/following{/other_user}","gists_url":"https://api.github.com/users/elbrujohalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/elbrujohalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbrujohalcon/subscriptions","organizations_url":"https://api.github.com/users/elbrujohalcon/orgs","repos_url":"https://api.github.com/users/elbrujohalcon/repos","events_url":"https://api.github.com/users/elbrujohalcon/events{/privacy}","received_events_url":"https://api.github.com/users/elbrujohalcon/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-11T20:48:56Z","updated_at":"2016-01-12T03:17:01Z","closed_at":null,"body":"It looks like hexer doesn't try and auto-resolve the version for the published package when reading the .app.src file.\r\n\r\n    Before publishing, please read Hex CoC: https://hex.pm/docs/codeofconduct\r\n    Proceed? [Y/n]: y\r\n    Error: {400,\r\n            #{<<\"message\">> =>     <<\"/tmp/build_f3222941c2fa0a473db5c3ef592b3f78/lib/hex_web/release.ex:184: value `\\\"git\\\"` in `where` cannot be cast to type HexWeb.Version in query:\\n\\nfrom r in HexWeb.Release,\\n  where: r.package_id in ^[1406],\\n  where: r.version == ^\\\"git\\\",\\n  limit: 1\\n\\nError when casting value to `HexWeb.Release.version`\">>,\r\n              <<\"status\">> => 400}}\r\n\r\nEither adding the rebar-like version info or having a command line override option would be acceptable I'd think."},"comment":{"url":"https://api.github.com/repos/inaka/hexer/issues/comments/170771305","html_url":"https://github.com/inaka/hexer/issues/31#issuecomment-170771305","issue_url":"https://api.github.com/repos/inaka/hexer/issues/31","id":170771305,"user":{"login":"davisp","id":19929,"avatar_url":"https://avatars.githubusercontent.com/u/19929?v=3","gravatar_id":"","url":"https://api.github.com/users/davisp","html_url":"https://github.com/davisp","followers_url":"https://api.github.com/users/davisp/followers","following_url":"https://api.github.com/users/davisp/following{/other_user}","gists_url":"https://api.github.com/users/davisp/gists{/gist_id}","starred_url":"https://api.github.com/users/davisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisp/subscriptions","organizations_url":"https://api.github.com/users/davisp/orgs","repos_url":"https://api.github.com/users/davisp/repos","events_url":"https://api.github.com/users/davisp/events{/privacy}","received_events_url":"https://api.github.com/users/davisp/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T03:17:01Z","updated_at":"2016-01-12T03:17:01Z","body":"One thing I noticed was that hexer likes to include compiled code for NIFs by default. Perhaps if those include globs were tightened up a bit we could just rely on the app's build system to produce `ebin/appname.app` and read that.\r\n\r\nAlso, along those lines, something that probably deserves its own issue would be something like `hexer test` or `hexer test -- make check` that would create the package and then expand it and run make check in a different directory to ensure that the package builds properly with what's included."}}