Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions neurodocker/templates/miniconda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: miniconda
url: https://docs.conda.io/projects/miniconda/en/latest/
binaries:
urls:
latest: https://repo.continuum.io/miniconda/Miniconda3-{{ self.version }}-Linux-x86_64.sh
'*': https://repo.continuum.io/miniconda/Miniconda3-{{ self.version }}-Linux-x86_64.sh
latest: https://repo.continuum.io/miniconda/Miniconda3-{{ self.version }}-Linux-{{ self.arch }}.sh
'*': https://repo.continuum.io/miniconda/Miniconda3-{{ self.version }}-Linux-{{ self.arch }}.sh
Comment on lines +8 to +9

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The URLs for latest and * are identical. To improve maintainability and avoid duplication, you can use a YAML anchor.

Additionally, the repo.continuum.io domain redirects to repo.anaconda.com. It's better to use the canonical domain to avoid potential issues if the redirect is removed in the future.

        latest: &miniconda_url https://repo.anaconda.com/miniconda/Miniconda3-{{ self.version }}-Linux-{{ self.arch }}.sh
        '*': *miniconda_url

env:
CONDA_DIR: '{{ self.install_path }}'
PATH: '{{ self.install_path }}/bin:$PATH'
Expand Down Expand Up @@ -34,6 +34,7 @@ binaries:
pip_opts: ''
yaml_file: ''
mamba: 'false'
arch: 'x86_64'
instructions: |
{% if not self.installed.lower() in ["true", "y", "1"] -%}
{{ self.install_dependencies() }}
Expand Down
Loading