{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/5505","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/5505/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/5505/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/5505/events","html_url":"https://github.com/rust-lang/cargo/issues/5505","id":321787795,"number":5505,"title":"Reproducible builds: Automatically remap $CARGO_HOME and $PWD","user":{"login":"kpcyrd","id":7763184,"avatar_url":"https://avatars1.githubusercontent.com/u/7763184?v=4","gravatar_id":"","url":"https://api.github.com/users/kpcyrd","html_url":"https://github.com/kpcyrd","followers_url":"https://api.github.com/users/kpcyrd/followers","following_url":"https://api.github.com/users/kpcyrd/following{/other_user}","gists_url":"https://api.github.com/users/kpcyrd/gists{/gist_id}","starred_url":"https://api.github.com/users/kpcyrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpcyrd/subscriptions","organizations_url":"https://api.github.com/users/kpcyrd/orgs","repos_url":"https://api.github.com/users/kpcyrd/repos","events_url":"https://api.github.com/users/kpcyrd/events{/privacy}","received_events_url":"https://api.github.com/users/kpcyrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-10T02:27:39Z","updated_at":"2018-05-10T02:27:39Z","closed_at":null,"author_association":"NONE","body":"As a followup of https://github.com/rust-lang/rust/issues/41555, I think `$CARGO_HOME` and `$PWD` (the location of the project) should be remapped to fixed values automatically.\r\n\r\nI found both of those paths inside binaries and I have to add boilerplate to all of my [reprotest] scripts to normalize them.\r\n\r\nThe motivation behind this is that alice and bob can both download the same release of a rust project, `cargo build --release` it and end up with a 100% identical binary, given a sufficiently similar build environment (rustc version and system libraries).\r\n\r\n[reprotest]: https://github.com/ReproducibleBuilds/reprotest"}}
{"actor":{"display_login":"kpcyrd"}}