{"action":"opened","issue":{"url":"https://api.github.com/repos/pivotal-cf-experimental/pivnet-resource/issues/8","repository_url":"https://api.github.com/repos/pivotal-cf-experimental/pivnet-resource","labels_url":"https://api.github.com/repos/pivotal-cf-experimental/pivnet-resource/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pivotal-cf-experimental/pivnet-resource/issues/8/comments","events_url":"https://api.github.com/repos/pivotal-cf-experimental/pivnet-resource/issues/8/events","html_url":"https://github.com/pivotal-cf-experimental/pivnet-resource/issues/8","id":136777395,"number":8,"title":"Product should able to declare dependency","user":{"login":"mfine30","id":854871,"avatar_url":"https://avatars.githubusercontent.com/u/854871?v=3","gravatar_id":"","url":"https://api.github.com/users/mfine30","html_url":"https://github.com/mfine30","followers_url":"https://api.github.com/users/mfine30/followers","following_url":"https://api.github.com/users/mfine30/following{/other_user}","gists_url":"https://api.github.com/users/mfine30/gists{/gist_id}","starred_url":"https://api.github.com/users/mfine30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfine30/subscriptions","organizations_url":"https://api.github.com/users/mfine30/orgs","repos_url":"https://api.github.com/users/mfine30/repos","events_url":"https://api.github.com/users/mfine30/events{/privacy}","received_events_url":"https://api.github.com/users/mfine30/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-26T18:35:21Z","updated_at":"2016-02-26T18:35:21Z","closed_at":null,"body":"As a tile author, my product depends on a specific version of a stemcell. During the upload of my product for a patch release, I would like to be able to specify the type and version of another product that my product depends upon. For example, I should be able to specify that version a.b.c of my tile depends on stemcell 3146.9. Because this second part is dynamic I would imagine that I specify a file path where I can list my dependency(ies?). \r\n\r\nThis means that the pivnet resource will have to do a mapping between the version of the dependent product that I care about and the pivnet backing `release_id`. \r\n\r\nhttps://network.pivotal.io/docs/api#public/docs/api/v2/release_dependencies.md\r\n\r\n\r\n```\r\nplan: \r\n- get: pivnet-stemcell\r\ntask: bump-stemcell-in-tile\r\nconfig: some-config\r\n- put: p-tile\r\n    params:\r\n      version_file: some-metadata-files/version\r\n      release_type_file: some-metadata-files/release_type\r\n      eula_slug_file: some-metadata-files/eula_slug\r\n      file_glob: some-source-files/*\r\n      s3_filepath_prefix: P-Gitlab\r\n      dependent_product: stemcell\r\n      dependent_product_version: pivnet-stemcell/version\r\n```\r\n\r\n"}}