{"action":"created","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/1582","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1582/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1582/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1582/events","html_url":"https://github.com/habitat-sh/habitat/issues/1582","id":196079747,"number":1582,"title":"How to specify versions of dependencies?","user":{"login":"carrete","id":19260155,"avatar_url":"https://avatars.githubusercontent.com/u/19260155?v=3","gravatar_id":"","url":"https://api.github.com/users/carrete","html_url":"https://github.com/carrete","followers_url":"https://api.github.com/users/carrete/followers","following_url":"https://api.github.com/users/carrete/following{/other_user}","gists_url":"https://api.github.com/users/carrete/gists{/gist_id}","starred_url":"https://api.github.com/users/carrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carrete/subscriptions","organizations_url":"https://api.github.com/users/carrete/orgs","repos_url":"https://api.github.com/users/carrete/repos","events_url":"https://api.github.com/users/carrete/events{/privacy}","received_events_url":"https://api.github.com/users/carrete/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T15:08:18Z","updated_at":"2016-12-17T02:08:07Z","closed_at":"2016-12-17T02:08:07Z","body":"I'm sorry if I've missed this in the documentation. I don't see how to do this under \"Define your dependencies\" in https://www.habitat.sh/docs/create-plans/. For example, because of https://github.com/habitat-sh/core-plans/pull/316 I'd like to require that core/python is at least some recent version. If I could only specify a particular version for core/python that would be acceptable too.\r\n\r\nI suppose there are two versions involved, a version for python, e.g. 3.5.2, and a build id, e.g. 20161214023627. Given that the build id \"contains\" the python version I think all I need to be able to specify is the build id."},"comment":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/comments/267736293","html_url":"https://github.com/habitat-sh/habitat/issues/1582#issuecomment-267736293","issue_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1582","id":267736293,"user":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T02:08:07Z","updated_at":"2016-12-17T02:08:07Z","body":"You define your dependencies in `pkg_deps` and `pkg_build_deps`. These take an array of packages. To quote the [plan syntax documentation](https://www.habitat.sh/docs/reference/plan-syntax/):\r\n\r\n>  You can refer to packages at three levels of specificity: origin/package, origin/package/version, or origin/package/version/release.\r\n\r\nSo the following would be legal:\r\n\r\n```\r\npkg_build_deps=(\r\n  core/coreutils\r\n  core/cacerts/2016.09.14\r\n  core/rust/1.13.0/20161209032413\r\n)\r\n```\r\nIf you omit the release timestamp, habitat chooses the latest release and likewise if you omit the version, habitat will choose the last version."}}
{"actor":{"display_login":"mwrock"}}