diff options
| author | Eric Huss <eric@huss.org> | 2022-06-23 13:55:08 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2022-06-23 13:55:08 -0700 |
| commit | 0143552b2c7bbe0946bb198839916470b6b362a5 (patch) | |
| tree | 9a29f65f128f211907e570eaae610c725f7cd27b /src | |
| parent | 43347397f7c5ca9a670a3bb3890c7187e24a52ab (diff) | |
| download | rust-0143552b2c7bbe0946bb198839916470b6b362a5.tar.gz rust-0143552b2c7bbe0946bb198839916470b6b362a5.zip | |
Remove unused CACHE_DIR in init_repo.
This was used long ago in Travis/Appveyor, but is no longer used.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/ci/init_repo.sh | 10 | ||||
| -rwxr-xr-x | src/ci/scripts/checkout-submodules.sh | 9 |
2 files changed, 1 insertions, 18 deletions
diff --git a/src/ci/init_repo.sh b/src/ci/init_repo.sh index e8c1e2b0f59..fd3491ace48 100755 --- a/src/ci/init_repo.sh +++ b/src/ci/init_repo.sh @@ -8,22 +8,12 @@ ci_dir=$(cd $(dirname $0) && pwd) . "$ci_dir/shared.sh" REPO_DIR="$1" -CACHE_DIR="$2" - -cache_src_dir="$CACHE_DIR/src" if [ ! -d "$REPO_DIR" -o ! -d "$REPO_DIR/.git" ]; then echo "Error: $REPO_DIR does not exist or is not a git repo" exit 1 fi cd $REPO_DIR -if [ ! -d "$CACHE_DIR" ]; then - echo "Error: $CACHE_DIR does not exist or is not an absolute path" - exit 1 -fi - -rm -rf "$CACHE_DIR" -mkdir "$CACHE_DIR" # On the beta channel we'll be automatically calculating the prerelease version # via the git history, so unshallow our shallow clone from CI. diff --git a/src/ci/scripts/checkout-submodules.sh b/src/ci/scripts/checkout-submodules.sh index 0b44ea3c90b..06cc5866f69 100755 --- a/src/ci/scripts/checkout-submodules.sh +++ b/src/ci/scripts/checkout-submodules.sh @@ -7,11 +7,4 @@ IFS=$'\n\t' source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" -if isWindows; then - path="/c/cache/rustsrc" -else - path="${HOME}/rustsrc" -fi - -mkdir -p "${path}" -"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" . "${path}" +"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" . |
