Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af2190a

Browse files
charrismelissawm
andauthored
MAINT: Fix codespaces setup.sh script (#24381)
A change in how codespaces is configured upstream causes the installation script for micromamba to wait for input unless stdin is explicitly made empty, which causes codespaces creation to fail. [skip ci] Co-authored-by: melissawm <[email protected]>
1 parent 8aa8130 commit af2190a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.devcontainer/setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
curl micro.mamba.pm/install.sh | bash
5+
"${SHELL}" <(curl -Ls micro.mamba.pm/install.sh) < /dev/null
66

77
conda init --all
88
micromamba shell init -s bash
@@ -11,3 +11,7 @@ micromamba env create -f environment.yml --yes
1111
# user (same applies to `conda activate`)
1212

1313
git submodule update --init
14+
15+
# Enables users to activate environment without having to specify the full path
16+
echo "envs_dirs:
17+
- /home/codespace/micromamba/envs" > /opt/conda/.condarc

0 commit comments

Comments
 (0)