Skip to content

Commit 4f13d25

Browse files
authored
ci: fix stamping for builds performed in CI (#24455)
Fixes the stamping for snapshot builds and the artifact deployment job.
1 parent 146a7a2 commit 4f13d25

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.circleci/config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ var_11: &yarn_install_loose_lockfile
6767
var_12: &setup_bazel_ci_config
6868
run:
6969
name: "Setting up Bazel configuration for CI"
70-
command: |
71-
echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc
70+
# Note: We add the remote config flag to the user bazelrc file that is not tracked
71+
# by Git. This is necessary to avoid stamping builds with `.with-local-changes`.
72+
command: echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc.user
7273

7374
# Attaches the release output which has been stored in the workspace to the current job.
7475
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs

scripts/bazel/setup-remote-execution.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ elif [[ ! -z "${GITHUB_ENV}" ]]; then
2626
fi
2727

2828
# Update the project Bazel configuration to always use remote execution.
29-
echo "build --config=remote" >> .bazelrc
29+
# Note: We add the remote config flag to the user bazelrc file that is not tracked
30+
# by Git. This is necessary to avoid stamping builds with `.with-local-changes`.
31+
echo "build --config=remote" >> .bazelrc.user

0 commit comments

Comments
 (0)