qiime2 / provenance-lib

QIIME 2 Provenance Replay Tools
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Initial CI workflow #49

Closed ChrisKeefe closed 2 years ago

ChrisKeefe commented 2 years ago

conda init zsh is failing just like conda init bash and conda init $SHELL

done
#
# To activate this environment, use
#
#     $ conda activate prov
#
# To deactivate an active environment, use
#
#     $ conda deactivate

+ conda init zsh
no change     /usr/local/miniconda/condabin/conda
no change     /usr/local/miniconda/bin/conda
no change     /usr/local/miniconda/bin/conda-env
no change     /usr/local/miniconda/bin/activate
no change     /usr/local/miniconda/bin/deactivate
no change     /usr/local/miniconda/etc/profile.d/conda.sh
no change     /usr/local/miniconda/etc/fish/conf.d/conda.fish
no change     /usr/local/miniconda/shell/condabin/Conda.psm1
modified      /usr/local/miniconda/shell/condabin/conda-hook.ps1
no change     /usr/local/miniconda/lib/python3.9/site-packages/xontrib/conda.xsh
no change     /usr/local/miniconda/etc/profile.d/conda.csh
modified      /Users/runner/.zshrc

==> For changes to take effect, close and re-open your current shell. <==

+ conda activate prov

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

Will attempt to manually source the updated files, and will bail on the "right way" if that fails

ChrisKeefe commented 2 years ago

Done with trying to do this with conda init.

#
# To activate this environment, use
#
#     $ conda activate prov
#
# To deactivate an active environment, use
#
#     $ conda deactivate

+ conda init zsh
no change     /usr/local/miniconda/condabin/conda
no change     /usr/local/miniconda/bin/conda
no change     /usr/local/miniconda/bin/conda-env
no change     /usr/local/miniconda/bin/activate
+ echo 'These are the files modified by conda init zsh'
no change     /usr/local/miniconda/bin/deactivate
no change     /usr/local/miniconda/etc/profile.d/conda.sh
no change     /usr/local/miniconda/etc/fish/conf.d/conda.fish
no change     /usr/local/miniconda/shell/condabin/Conda.psm1
modified      /usr/local/miniconda/shell/condabin/conda-hook.ps1
no change     /usr/local/miniconda/lib/python3.9/site-packages/xontrib/conda.xsh
no change     /usr/local/miniconda/etc/profile.d/conda.csh
modified      /Users/runner/.zshrc

==> For changes to take effect, close and re-open your current shell. <==

These are the files modified by conda init zsh
+ source /usr/local/miniconda/shell/condabin/conda-hook.ps1
++ :CONDA_EXE = /usr/local/miniconda/bin/conda
/usr/local/miniconda/shell/condabin/conda-hook.ps1: line 1: :CONDA_EXE: command not found
Error: Process completed with exit code 127.

This guy seems to work for #48, so I'm going with it.

source ${CONDA}/etc/profile.d/conda.sh
conda activate prov