Skip to content

Commit

Permalink
Remove 'defaults' conda channel from docs (#5607) [ci fast]
Browse files Browse the repository at this point in the history

Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Co-authored-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
ewels and bentsherman authored Dec 16, 2024
1 parent 9eefd20 commit 8b54181
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ name: my-env
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- star=2.5.4a
- bwa=0.7.15
Expand Down Expand Up @@ -105,7 +104,8 @@ Conda environment files can also be used to install Python packages from the [Py
```yaml
name: my-env-2
channels:
- defaults
- conda-forge
- bioconda
dependencies:
- pip
- pip:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,20 @@ class CondaCacheTest extends Specification {
def hash = CondaCache.sipHash(ENV)
ENV.text = '''
channels:
- conda-forge
- bioconda
- defaults
dependencies:
# Default bismark
- star=2.5.4a
- bwa=0.7.15
- bwa=0.7.15
'''
.stripIndent(true) // https://issues.apache.org/jira/browse/GROOVY-9423
when:
def prefix = cache.condaPrefixPath(ENV.toString())
then:
1 * cache.isYamlFilePath(ENV.toString())
1 * cache.getCacheDir() >> BASE
prefix.toString() == "/conda/envs/env-${hash}-9416240708c49c4e627414b46a743664"
prefix.toString() == "/conda/envs/env-${hash}-64874f9dc9e7be788384bccef357a4f4"

cleanup:
folder?.deleteDir()
Expand All @@ -119,15 +119,15 @@ class CondaCacheTest extends Specification {
def BASE = Paths.get('/conda/envs')
def ENV = Files.createTempFile('test','.yml')
def hash = CondaCache.sipHash(ENV)
ENV.text = '''
ENV.text = '''
name: my-env-1.1
channels:
- conda-forge
- bioconda
- defaults
dependencies:
# Default bismark
- star=2.5.4a
- bwa=0.7.15
- bwa=0.7.15
'''
.stripIndent(true)

Expand All @@ -136,7 +136,7 @@ class CondaCacheTest extends Specification {
then:
1 * cache.isYamlFilePath(ENV.toString())
1 * cache.getCacheDir() >> BASE
prefix.toString() == "/conda/envs/env-${hash}-e7fafe40ca966397a2c0d9bed7181aa7"
prefix.toString() == "/conda/envs/env-${hash}-5b5c72e839d0c7dcabb5d06607c205fc"

}

Expand All @@ -150,7 +150,7 @@ class CondaCacheTest extends Specification {
def hash = CondaCache.sipHash(ENV)
ENV.text = '''
star=2.5.4a
bwa=0.7.15
bwa=0.7.15
multiqc=1.2.3
'''
.stripIndent(true) // https://issues.apache.org/jira/browse/GROOVY-9423
Expand All @@ -161,7 +161,7 @@ class CondaCacheTest extends Specification {
1 * cache.isYamlFilePath(ENV.toString())
1 * cache.isTextFilePath(ENV.toString())
1 * cache.getCacheDir() >> BASE
prefix.toString() == "/conda/envs/env-${hash}-8a4aa7db8ddb8ce4eb4d450d4814a437"
prefix.toString() == "/conda/envs/env-${hash}-85371202d8820331ff19ae89c0595497"

cleanup:
folder?.deleteDir()
Expand Down

0 comments on commit 8b54181

Please sign in to comment.