Skip to content

Commit f4724da

Browse files
committed
CDRIVER-3573 do not hardcode version
1 parent 33fe00f commit f4724da

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.evergreen/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ functions:
2323
script: |-
2424
set -o errexit
2525
set -o xtrace
26-
if [ "${is_patch}" = "true" ]; then
27-
# TODO: CDRIVER-3573 do not hardcode the version for patch builds.
26+
# TODO: CDRIVER-3573 do not hardcode the version.
27+
if [ "${project}" != "mongoc-c-driver" ]; then
28+
# This is an older branch, like r1.17
29+
VERSION_CURRENT="1.17.0-pre"
30+
echo $VERSION_CURRENT > "VERSION_CURRENT"
31+
VERSION=$VERSION_CURRENT-${version_id}
32+
elif [ "${is_patch}" = "true" ]; then
2833
VERSION_CURRENT="1.17.0-pre"
2934
echo $VERSION_CURRENT > "VERSION_CURRENT"
3035
VERSION=$VERSION_CURRENT-patch-${version_id}

build/evergreen_config_lib/functions.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
('directory', 'mongoc'),
2828
]))]),
2929
shell_mongoc(r'''
30-
if [ "${is_patch}" = "true" ]; then
31-
# TODO: CDRIVER-3573 do not hardcode the version for patch builds.
30+
# TODO: CDRIVER-3573 do not hardcode the version.
31+
if [ "${project}" != "mongoc-c-driver" ]; then
32+
# This is an older branch, like r1.17
33+
VERSION_CURRENT="1.17.0-pre"
34+
echo $VERSION_CURRENT > "VERSION_CURRENT"
35+
VERSION=$VERSION_CURRENT-${version_id}
36+
elif [ "${is_patch}" = "true" ]; then
3237
VERSION_CURRENT="1.17.0-pre"
3338
echo $VERSION_CURRENT > "VERSION_CURRENT"
3439
VERSION=$VERSION_CURRENT-patch-${version_id}

0 commit comments

Comments
 (0)