Skip to content

Commit

Permalink
Remove unused CACHE_DIR in init_repo.
Browse files Browse the repository at this point in the history
This was used long ago in Travis/Appveyor, but is no longer used.
  • Loading branch information
ehuss committed Jun 23, 2022
1 parent 4334739 commit 0143552
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
10 changes: 0 additions & 10 deletions src/ci/init_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 1 addition & 8 deletions src/ci/scripts/checkout-submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" .

0 comments on commit 0143552

Please sign in to comment.