Skip to content

Commit 9e38c54

Browse files
authored
PYTHON-4861 Fix HATCH_CONFIG on cygwin (mongodb#1927)
1 parent a911245 commit 9e38c54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.evergreen/hatch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ else # Set up virtualenv before installing hatch
2929
# Ensure hatch does not write to user or global locations.
3030
touch hatch_config.toml
3131
HATCH_CONFIG=$(pwd)/hatch_config.toml
32+
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
33+
HATCH_CONFIG=$(cygpath -m "$HATCH_CONFIG")
34+
fi
3235
export HATCH_CONFIG
3336
hatch config restore
3437
hatch config set dirs.data ".hatch/data"

0 commit comments

Comments
 (0)