Skip to content

Commit

Permalink
fix compilecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 30, 2024
1 parent 00208f8 commit b1ea257
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion etc/check_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ for mod in $mods; do
echo "Checking $mod..."
go mod tidy -v
go mod edit -toolchain=none
if [ "$(dirname $mod)" == "." ]; then
echo "hello $(dirname $mod)"
if [ "$(dirname $mod)" == "." ] || [ "$(dirname $mod)" == "./internal/cmd/compilecheck" ]; then
echo "replacing!"
go mod edit -go=${base_version}
fi
git diff --exit-code go.mod go.sum || {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/compilecheck/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module go.mongodb.go/mongo-driver/internal/cmd/compilecheck

go 1.22
go 1.18

replace go.mongodb.org/mongo-driver/v2 => ../../../

Expand Down

0 comments on commit b1ea257

Please sign in to comment.