Skip to content

Commit d4a625b

Browse files
authored
GODRIVER-2492 remove command to download crypt_shared (#1049)
1 parent 6517225 commit d4a625b

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -190,48 +190,6 @@ functions:
190190
# initialize submodules
191191
git submodule init
192192
git submodule update
193-
- command: shell.exec
194-
params:
195-
working_dir: src/go.mongodb.org/mongo-driver
196-
script: |
197-
${PREPARE_SHELL}
198-
199-
MONGODB_VERSION=${VERSION}
200-
if [ -z "$MONGODB_VERSION" ]; then
201-
# default to latest to match behavior of run-orchestration.sh.
202-
MONGODB_VERSION=latest
203-
fi
204-
205-
. $DRIVERS_TOOLS/.evergreen/download-mongodb.sh
206-
get_distro
207-
# get_distro defines $DISTRO.
208-
get_mongodb_download_url_for "$DISTRO" "$MONGODB_VERSION"
209-
# get_mongodb_download_url_for defines $MONGO_CRYPT_SHARED_DOWNLOAD_URL and $EXTRACT.
210-
if [ -z "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" ]; then
211-
echo "There is no crypt_shared library for distro='$DISTRO' and version='$MONGODB_VERSION'".
212-
touch expansion.yml
213-
else
214-
echo "Downloading crypt_shared package from $MONGO_CRYPT_SHARED_DOWNLOAD_URL"
215-
download_and_extract_crypt_shared "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" "$EXTRACT"
216-
CRYPT_SHARED_LIB_PATH="$(find $(pwd) -maxdepth 1 -type f \
217-
-name 'mongo_crypt_v1.so' -o \
218-
-name 'mongo_crypt_v1.dll' -o \
219-
-name 'mongo_crypt_v1.dylib')"
220-
# Expect that we always find a crypt_shared library file and set the CRYPT_SHARED_LIB_PATH
221-
# environment variable. If we didn't, print an error message and exit.
222-
if [ -z "$CRYPT_SHARED_LIB_PATH" ]; then
223-
echo 'CRYPT_SHARED_LIB_PATH is empty. Exiting.'
224-
exit 1
225-
fi
226-
# If we're on Windows, convert the "cygdrive" path to Windows-style paths.
227-
if [ "Windows_NT" = "$OS" ]; then
228-
CRYPT_SHARED_LIB_PATH=$(cygpath -m $CRYPT_SHARED_LIB_PATH)
229-
fi
230-
echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH" > expansion.yml
231-
fi
232-
- command: expansions.update
233-
params:
234-
file: src/go.mongodb.org/mongo-driver/expansion.yml
235193
236194
install-linters:
237195
- command: shell.exec

0 commit comments

Comments
 (0)