Skip to content

Commit

Permalink
Add warning for condarc files not named .condarc (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Dec 14, 2023
1 parent 24701ca commit 85a34ff
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
15 changes: 10 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions dist/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-micromamba",
"version": "1.7.0",
"version": "1.7.1",
"private": true,
"description": "Action to setup micromamba",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ const checkForKnownIssues = (options: Options) => {
'You are using a micromamba version < 1.4.5-0 and initialize the shell. This is behavior is deprecated. Please update the micromamba version. For further informations, see https://github.com/mamba-org/setup-micromamba/pull/107'
)
}
if (options.condarcFile && path.basename(options.condarcFile) !== '.condarc') {
throw new Error(
`You are using a condarc file that is not named '.condarc'. This is currently not supported by micromamba, see https://github.com/mamba-org/mamba/issues/1394`
)
}
}

const getOptions = () => {
Expand Down

0 comments on commit 85a34ff

Please sign in to comment.