{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/2007","labels_url":"https://api.github.com/repos/conda/conda/issues/2007/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/2007/comments","events_url":"https://api.github.com/repos/conda/conda/issues/2007/events","html_url":"https://github.com/conda/conda/pull/2007","id":129664963,"number":2007,"title":"Make clone_env link packages in toposorted order","user":{"login":"mmarchetti","id":2903390,"avatar_url":"https://avatars.githubusercontent.com/u/2903390?v=3","gravatar_id":"","url":"https://api.github.com/users/mmarchetti","html_url":"https://github.com/mmarchetti","followers_url":"https://api.github.com/users/mmarchetti/followers","following_url":"https://api.github.com/users/mmarchetti/following{/other_user}","gists_url":"https://api.github.com/users/mmarchetti/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarchetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarchetti/subscriptions","organizations_url":"https://api.github.com/users/mmarchetti/orgs","repos_url":"https://api.github.com/users/mmarchetti/repos","events_url":"https://api.github.com/users/mmarchetti/events{/privacy}","received_events_url":"https://api.github.com/users/mmarchetti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-29T04:38:59Z","updated_at":"2016-01-29T20:31:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/conda/conda/pulls/2007","html_url":"https://github.com/conda/conda/pull/2007","diff_url":"https://github.com/conda/conda/pull/2007.diff","patch_url":"https://github.com/conda/conda/pull/2007.patch"},"body":"Currently, conda create --clone <env> links all packages in <env>\r\ninto a new environment. This is done without respecting package\r\ndependencies. This can cause issues with packages that have\r\ninstall-time dependencies (for example, post-link scripts).\r\n\r\nThis fixes https://github.com/conda/conda/issues/1451."},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/176955945","html_url":"https://github.com/conda/conda/pull/2007#issuecomment-176955945","issue_url":"https://api.github.com/repos/conda/conda/issues/2007","id":176955945,"user":{"login":"mcg1969","id":2797735,"avatar_url":"https://avatars.githubusercontent.com/u/2797735?v=3","gravatar_id":"","url":"https://api.github.com/users/mcg1969","html_url":"https://github.com/mcg1969","followers_url":"https://api.github.com/users/mcg1969/followers","following_url":"https://api.github.com/users/mcg1969/following{/other_user}","gists_url":"https://api.github.com/users/mcg1969/gists{/gist_id}","starred_url":"https://api.github.com/users/mcg1969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcg1969/subscriptions","organizations_url":"https://api.github.com/users/mcg1969/orgs","repos_url":"https://api.github.com/users/mcg1969/repos","events_url":"https://api.github.com/users/mcg1969/events{/privacy}","received_events_url":"https://api.github.com/users/mcg1969/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T20:31:36Z","updated_at":"2016-01-29T20:31:36Z","body":"> we don't have filenames - we have 'dists' which are hyphen-separated string representations of the package/version/build tuples\r\n\r\nIn what way are they truly \"distinct\"? The reason we're moving away from using them as keys is because of the real possibility of clashing filenames: for instance, packages from two different channels with the same name and version. Passing around package-version-build triples under any circumstances seems prone to that very conflict whether they correspond to filenames or not.\r\n\r\nNevertheless, the code I've offered above handles both situations gracefully, if we assume that information in the package index controls when present."}}