{"action":"opened","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/5516","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5516/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5516/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5516/events","html_url":"https://github.com/habitat-sh/habitat/issues/5516","id":354772170,"node_id":"MDU6SXNzdWUzNTQ3NzIxNzA=","number":5516,"title":"Hab cli should specify `target` parameter latest package query against Builder","user":{"login":"smacfarlane","id":36851,"node_id":"MDQ6VXNlcjM2ODUx","avatar_url":"https://avatars0.githubusercontent.com/u/36851?v=4","gravatar_id":"","url":"https://api.github.com/users/smacfarlane","html_url":"https://github.com/smacfarlane","followers_url":"https://api.github.com/users/smacfarlane/followers","following_url":"https://api.github.com/users/smacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/smacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/smacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacfarlane/subscriptions","organizations_url":"https://api.github.com/users/smacfarlane/orgs","repos_url":"https://api.github.com/users/smacfarlane/repos","events_url":"https://api.github.com/users/smacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/smacfarlane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T15:00:31Z","updated_at":"2018-08-28T15:00:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When interacting with builder,  the hab cli sends the `PackageTarget::active_target()` in the headers which Builder uses to determine the latest available package (among other things) for the specified target.\r\n\r\nHowever, when developing a new `PackageTarget`, builder will not be aware of it and will fall through to a default of `x86_64-linux` [code](https://github.com/habitat-sh/builder/blob/master/components/builder-api/src/depot/server.rs#L2319-L2322) which can result in an error during package builds as it will try to download and install a package with a different target than the invoking hab cli's `active_target()`.\r\n\r\nThe hab cli should always send along the `target` parameter in the url when querying the latest package in order to bypass this logic and only receive results that it expects.\r\n\r\nRef: https://github.com/habitat-sh/builder/issues/612\r\n"}}
{"actor":{"display_login":"smacfarlane"}}