Do not fail on windows with specified 'tools-deps' instead of 'cli'

This commit is contained in:
Kirill Chernyshov 2021-05-14 10:38:13 +02:00
parent 12f4eac607
commit 6a1d1d403a
No known key found for this signature in database
GPG Key ID: 425B3AB78FBCFBDB
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -3453,9 +3453,9 @@ function run() {
cli.setup(CLI_VERSION);
}
}
if (TDEPS_VERSION) {
if (TDEPS_VERSION && !CLI_VERSION) {
if (IS_WINDOWS) {
throw new Error('Clojure tools.deps on windows is not supported yet.');
cli.setupWindows(TDEPS_VERSION);
}
cli.setup(TDEPS_VERSION);
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -32,9 +32,9 @@ async function run(): Promise<void> {
}
}
if (TDEPS_VERSION) {
if (TDEPS_VERSION && !CLI_VERSION) {
if (IS_WINDOWS) {
throw new Error('Clojure tools.deps on windows is not supported yet.')
cli.setupWindows(TDEPS_VERSION)
}
cli.setup(TDEPS_VERSION)
}