Skip to content

Instantly share code, notes, and snippets.

@JuliaSprenger
Created December 22, 2020 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuliaSprenger/ef009154d61716d85710772672749fbf to your computer and use it in GitHub Desktop.
Save JuliaSprenger/ef009154d61716d85710772672749fbf to your computer and use it in GitHub Desktop.
create conda environment with gin-cli and git-annex

Setting a conda environment for gin including git-annex

To set up a recent version of the gin client together with a recent version of git-annex one can set up a conda environment that contains both. For this you need to

  1. create the environment with git-annex
ginenv=<my-environment-name>
conda create -n "$ginenv" -c conda-forge git-annex
conda activate $ginenv
  1. add the gin binary to the environment
envbindir=$CONDA_PREFIX/bin
wget https://gin.g-node.org/G-Node/gin-cli-releases/raw/master/gin-cli-latest-linux.tar.gz -P $envbindir
tar -xvzf "$envbindir/gin-cli-latest-linux.tar.gz" -C "$envbindir"
  1. confirm package versions Gin should now use the git-annex version provided by the conda environment:
gin --version
git-annex version

Note: When working collaboratively on git-annex based repositories make sure to agree on a version of gin and git-annex since you might encounter inconsistent repository states otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment