mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 12:51:55 +00:00
ci: fix incorrect usage of target determinator (#59171)
This commit is contained in:
parent
721eb34664
commit
6a67b76877
2
.gitignore
vendored
2
.gitignore
vendored
@ -174,7 +174,7 @@ index.scip
|
||||
/dev/backcompat/back_compat_migrations.patch
|
||||
|
||||
# Generated on CI only
|
||||
.aspect/bazelrc/ci.sourcegraph.bazelrc
|
||||
.aspect/bazelrc/ci.generated.bazelrc
|
||||
|
||||
# nix
|
||||
result
|
||||
|
||||
3
cmd/executor/ci-should-rebuild.sh
Normal file → Executable file
3
cmd/executor/ci-should-rebuild.sh
Normal file → Executable file
@ -13,8 +13,7 @@ set -eu
|
||||
changes_count=$(target-determinator \
|
||||
--verbose \
|
||||
--targets \
|
||||
//cmd/executor/vm-image:ami.push \
|
||||
//cmd/executor/docker-mirror \
|
||||
"//cmd/executor/vm-image:ami.build union //cmd/executor/docker-mirror:ami.build" \
|
||||
HEAD^ \
|
||||
| wc -l
|
||||
)
|
||||
|
||||
@ -16,7 +16,7 @@ cd "${BUILD_WORKSPACE_DIRECTORY}"
|
||||
bazel configure
|
||||
|
||||
if [ "${CI:-}" ]; then
|
||||
git ls-files --exclude-standard --others | grep -v .aspect/bazelrc/ci.generated.bazelrc | xargs git add --intent-to-add || true
|
||||
git ls-files --exclude-standard --others | xargs git add --intent-to-add || true
|
||||
|
||||
diff_file=$(mktemp)
|
||||
trap 'rm -f "${diff_file}"' EXIT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user