{"action":"reopened","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1694","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1694/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1694/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1694/events","html_url":"https://github.com/rust-lang/cargo/issues/1694","id":86295200,"number":1694,"title":"relative target-dirs cause spurious rebuilds","user":{"login":"metajack","id":28357,"avatar_url":"https://avatars.githubusercontent.com/u/28357?v=3","gravatar_id":"","url":"https://api.github.com/users/metajack","html_url":"https://github.com/metajack","followers_url":"https://api.github.com/users/metajack/followers","following_url":"https://api.github.com/users/metajack/following{/other_user}","gists_url":"https://api.github.com/users/metajack/gists{/gist_id}","starred_url":"https://api.github.com/users/metajack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metajack/subscriptions","organizations_url":"https://api.github.com/users/metajack/orgs","repos_url":"https://api.github.com/users/metajack/repos","events_url":"https://api.github.com/users/metajack/events{/privacy}","received_events_url":"https://api.github.com/users/metajack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T19:10:06Z","updated_at":"2015-06-08T22:19:23Z","closed_at":null,"body":"If you have two packages in a repo and wish to use shared target dirs to avoid rebuilds, you might use relative target-dir specs (one in each package) to do this by setting them to `../target` or something.\r\n\r\nThis causes cargo to rebuild everything, probably because it sees the two target dirs as `/path/to/package_a/../target\" and \"/path/to/package_b/../target\".\r\n\r\nRight now you can workaround this by using absolute paths through the CARGO_TARGET_DIR environment var."}}