Skip to content

Commit 992ccb7

Browse files
authored
Restrict cloned mongo-c-driver to mongoc_version_minimum (#1376)
1 parent c0f72cd commit 992ccb7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.mci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,20 @@ functions:
368368
# fetch_c_driver_source may be used to fetch the C driver source without installing the C driver.
369369
# This can be used when only CI scripts are needed.
370370
"fetch_c_driver_source":
371+
- command: expansions.update
372+
type: setup
373+
params:
374+
updates:
375+
- key: mongoc_version_minimum
376+
value: *mongoc_version_minimum
371377
- command: shell.exec
372378
params:
373379
shell: bash
374380
working_dir: "."
375381
script: |
376382
set -o errexit
377383
set -o pipefail
378-
git clone --depth 1 https://github.com/mongodb/mongo-c-driver mongoc
384+
git clone --depth 1 --branch ${mongoc_version_minimum} https://github.com/mongodb/mongo-c-driver mongoc
379385
380386
"lint":
381387
- command: shell.exec
@@ -1082,6 +1088,12 @@ tasks:
10821088
commands:
10831089
- func: "setup"
10841090
- func: "start_mongod"
1091+
- command: expansions.update
1092+
type: setup
1093+
params:
1094+
updates:
1095+
- key: mongoc_version_minimum
1096+
value: *mongoc_version_minimum
10851097
- command: shell.exec
10861098
type: test
10871099
params:
@@ -1090,7 +1102,7 @@ tasks:
10901102
script: |-
10911103
set -o errexit
10921104
cd examples/add_subdirectory
1093-
[ -d mongo-c-driver ] || git clone --depth 1 https://github.com/mongodb/mongo-c-driver
1105+
[ -d mongo-c-driver ] || git clone --depth 1 --branch ${mongoc_version_minimum} https://github.com/mongodb/mongo-c-driver
10941106
rsync -aq --exclude='examples/add_subdirectory' $(readlink -f ../..) .
10951107
[ -d build ] || mkdir build
10961108
. ./mongo-c-driver/.evergreen/scripts/find-cmake-latest.sh

0 commit comments

Comments
 (0)