{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4173","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4173/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4173/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4173/events","html_url":"https://github.com/travis-ci/travis-ci/issues/4173","id":92580409,"number":4173,"title":"APT plugin to support shell variables","user":{"login":"phadej","id":51087,"avatar_url":"https://avatars.githubusercontent.com/u/51087?v=3","gravatar_id":"","url":"https://api.github.com/users/phadej","html_url":"https://github.com/phadej","followers_url":"https://api.github.com/users/phadej/followers","following_url":"https://api.github.com/users/phadej/following{/other_user}","gists_url":"https://api.github.com/users/phadej/gists{/gist_id}","starred_url":"https://api.github.com/users/phadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phadej/subscriptions","organizations_url":"https://api.github.com/users/phadej/orgs","repos_url":"https://api.github.com/users/phadej/repos","events_url":"https://api.github.com/users/phadej/events{/privacy}","received_events_url":"https://api.github.com/users/phadej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T08:26:51Z","updated_at":"2015-07-10T19:50:06Z","closed_at":null,"body":"I'd like to have:\r\n```yaml\r\nenv:\r\n  - GHCVER=7.8.4\r\n  - GHCVER=7.10.1\r\n  - GHCVER=head\r\n\r\naddons:\r\n  apt:\r\n    sources:\r\n    - hvr-ghc\r\n    packages:\r\n    - ghc-$GHCVER\r\n```\r\n\r\n---\r\n\r\nAdditionally it would be nice, if one could specify precisely the version of deb-package (using shell variable as well!)\r\nCurrently I have to install all packages, which is quite wasteful (luckily they can co-exist)."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/120505994","html_url":"https://github.com/travis-ci/travis-ci/issues/4173#issuecomment-120505994","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4173","id":120505994,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T19:50:06Z","updated_at":"2015-07-10T19:50:06Z","body":"This fails because environment variables are exported *after* the packages are installed. This seems like a reasonable use of env vars."}}