Skip to content

Commit

Permalink
Pass --remap-path-prefix to cargo
Browse files Browse the repository at this point in the history
This is meant to reduce nondeterminism across machines or docker vs host, but it does not seem to fully
solve the problem yet (it does remove some paths from the resulting
binary, so I think it is necessary, but not sufficient).

Ref project-oak#865
  • Loading branch information
tiziano88 committed Jun 9, 2020
1 parent 5d8891f commit 858fd92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/common
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ set -o pipefail
# https://docs.rs/env_logger
export RUST_LOG="${RUST_LOG:-info}"

# Reduce nondeterminism by remapping paths so that they don't include local path segments.
export RUSTFLAGS="--remap-path-prefix=$PWD=/"

# See https://pantheon.corp.google.com/gcr/images/oak-ci/GLOBAL/oak
readonly DOCKER_IMAGE_NAME='gcr.io/oak-ci/oak'
readonly SERVER_DOCKER_IMAGE_NAME='gcr.io/oak-ci/oak-server'
Expand Down

0 comments on commit 858fd92

Please sign in to comment.