diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index 80b8dfb5d76a11..8528e431fc3558 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -253,15 +253,6 @@ if [ -z "${BAZEL_SKIP_JAVA_COMPILATION}" ]; then workspace(name = 'bazel_tools') EOF - # Set up the MODULE.bazel file for `bazel_tools` and update the hash in the lockfile. - link_file "${PWD}/src/MODULE.tools" "${BAZEL_TOOLS_REPO}/MODULE.bazel" - new_hash=$(shasum -a 256 "${BAZEL_TOOLS_REPO}/MODULE.bazel" | awk '{print $1}') - sed -i.bak "/\"bazel_tools\":/s/\"[a-f0-9]*\"/\"$new_hash\"/" MODULE.bazel.lock - # TODO: Temporary hack for lockfile version mismatch, remove these two lines after updating to 6.4.0 - sed -i.bak 's/"lockFileVersion": 1/"lockFileVersion": 2/' MODULE.bazel.lock - sed -i.bak 's/"moduleExtensions":/"moduleExtensions-old":/' MODULE.bazel.lock - rm MODULE.bazel.lock.bak - mkdir -p "${BAZEL_TOOLS_REPO}/src/conditions" link_file "${PWD}/src/conditions/BUILD.tools" \ "${BAZEL_TOOLS_REPO}/src/conditions/BUILD" diff --git a/src/test/shell/bazel/bazel_determinism_test.sh b/src/test/shell/bazel/bazel_determinism_test.sh index a0ba83e56684e2..dc7934662a8995 100755 --- a/src/test/shell/bazel/bazel_determinism_test.sh +++ b/src/test/shell/bazel/bazel_determinism_test.sh @@ -55,19 +55,7 @@ function test_determinism() { cd "${workdir}" || fail "Could not change to work directory" unzip -q "${DISTFILE}" - # Set up the maven repository properly. - cp derived/maven/BUILD.vendor derived/maven/BUILD - - # Update the hash of bazel_tools in lockfile to avoid rerunning module resolution. - new_hash=$(shasum -a 256 "src/MODULE.tools" | awk '{print $1}') - sed -i.bak "/\"bazel_tools\":/s/\"[a-f0-9]*\"/\"$new_hash\"/" MODULE.bazel.lock - # TODO: Temporary hack for lockfile version mismatch, remove these two lines after updating to 6.4.0 - sed -i.bak 's/"lockFileVersion": 1/"lockFileVersion": 2/' MODULE.bazel.lock - sed -i.bak 's/"moduleExtensions":/"moduleExtensions-old":/' MODULE.bazel.lock - rm MODULE.bazel.lock.bak - - # Use @bazel_tools//tools/python:autodetecting_toolchain to avoid - # downloading python toolchain. + distdir="derived/distdir" # Build Bazel once. bazel \