Skip to content

Commit 2efca5f

Browse files
Prevent duplicate queries during hashing (#203)
* Prevent duplicate queries during hashing Currently duplicate queries could fire with this logic * pin version
1 parent c47d226 commit 2efca5f

File tree

9 files changed

+657
-57
lines changed

9 files changed

+657
-57
lines changed

.bazelversion

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.4.0

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
2626
- uses: actions/checkout@v3
2727
- name: Run bazel-diff tests
28-
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk test //cli/...
28+
run: ~/go/bin/bazelisk test //cli/...
2929
- name: archive testlogs
3030
if: always()
3131
run: cp -R $(~/go/bin/bazelisk info bazel-testlogs) ./test-logs; (cd test-logs; zip -r -X ../test-logs.zip .)
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
fetch-depth: 0
5757
- name: Run bazel-diff example script
58-
run: USE_BAZEL_VERSION=latest ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
58+
run: ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
5959
test-jre11:
6060
runs-on: ubuntu-latest
6161
steps:
@@ -73,7 +73,7 @@ jobs:
7373
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
7474
- uses: actions/checkout@v3
7575
- name: Run bazel-diff tests
76-
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk coverage --combined_report=lcov //cli/...
76+
run: ~/go/bin/bazelisk coverage --combined_report=lcov //cli/...
7777
- name: archive testlogs
7878
if: always()
7979
run: cp -R $(~/go/bin/bazelisk info bazel-testlogs) ./test-logs; (cd test-logs; zip -r -X ../test-logs.zip .)
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
fetch-depth: 0
105105
- name: Run bazel-diff example script
106-
run: USE_BAZEL_VERSION=latest ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
106+
run: ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
107107
deploy:
108108
needs: [test-jre8, test-jre11]
109109
runs-on: ubuntu-latest
@@ -126,7 +126,7 @@ jobs:
126126
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
127127
- uses: actions/checkout@v3
128128
- name: Build deployable JAR
129-
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk build //cli:bazel-diff_deploy.jar
129+
run: ~/go/bin/bazelisk build //cli:bazel-diff_deploy.jar
130130
- uses: actions/upload-artifact@v3
131131
with:
132132
name: bazel-diff_deploy.jar

MODULE.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
###############################################################################
2+
# Bazel now uses Bzlmod by default to manage external dependencies.
3+
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4+
#
5+
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
6+
###############################################################################

0 commit comments

Comments
 (0)