Skip to content

Commit

Permalink
Support the special version "MIN"
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 5, 2024
1 parent f3d4142 commit f6c0c51
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ This action sets up a Julia environment for use in actions by downloading a spec
#
# Default: false
show-versioninfo: ''

# Set the path to the project directory or file to use when resolving some versions (e.g. MIN).
#
# Default: '.'
project: ''
```
### Outputs
Expand Down Expand Up @@ -111,6 +116,7 @@ You can either specify specific Julia versions or version ranges. If you specify
- `~1.3.0-0` is a **tilde** version range that includes _all_ pre-releases of `1.3.0`. It matches all versions `≥ 1.3.0-` and `< 1.4.0`.
- `nightly` will install the latest nightly build.
- `1.7-nightly` will install the latest nightly build for the upcoming 1.7 release. This version will only be available during certain phases of the Julia release cycle.
- `MIN` will install the minimum supported version of Julia compatible with the project.

Internally the action uses node's semver package to resolve version ranges. Its [documentation](https://github.com/npm/node-semver#advanced-range-syntax) contains more details on the version range syntax. You can test what version will be selected for a given input in this JavaScript [REPL](https://repl.it/@SaschaMann/setup-julia-version-logic).

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: 'Display InteractiveUtils.versioninfo() after installing'
required: false
default: 'false'
project:
description: 'The path to the project directory or file to use when resolving some versions (e.g. MIN)'
required: false
default: '.'
outputs:
julia-version:
description: 'The installed Julia version. May vary from the version input if a version range was given as input.'
Expand Down
13 changes: 12 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.1",
"async-retry": "^1.3.3",
"semver": "^7.5.4"
"semver": "^7.5.4",
"toml": "^3.0.0"
},
"devDependencies": {
"@types/async-retry": "^1.4.8",
Expand Down
50 changes: 45 additions & 5 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as path from 'path'
import retry = require('async-retry')

import * as semver from 'semver'
import "toml";

// Translations between actions input and Julia arch names
const osMap = {
Expand Down Expand Up @@ -76,15 +77,54 @@ export async function getJuliaVersions(versionInfo): Promise<string[]> {
return versions
}

export function getJuliaVersion(availableReleases: string[], versionInput: string, includePrerelease: boolean = false): string {
/**
* @returns An array of version ranges compatible with the Julia project
*/
function getProjectJuliaCompatVersions(projectInput: string): Promise<string[]> {
let compatVersions: string[] = []
let projectFile: string

if (fs.statSync(projectInput).isFile()) {
projectFile = projectInput
} else {
for (let projectFilename in ["JuliaProject.toml", "Project.toml"]) {
let p = path.join(projectInput, projectFilename)
if (fs.statSync(projectFile).isFile()) {

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 92 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Variable 'projectFile' is used before being assigned.
projectFile = p
break
}
}
}

if (!projectFile) {

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Variable 'projectFile' is used before being assigned.

Check failure on line 99 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Variable 'projectFile' is used before being assigned.
throw new Error(`Unable to locate project file with project input: ${projectInput}`)
}

const meta = toml.parse(fs.readFileSync(projectFile))

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Cannot find name 'toml'.

Check failure on line 103 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Cannot find name 'toml'.
for (let versionRange in meta.compat?.julia?.split(",")) {
compatVersions.push(versionRange.trim())
}

return compatVersions

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]

Check failure on line 108 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Type 'string[]' is missing the following properties from type 'Promise<string[]>': then, catch, finally, [Symbol.toStringTag]
}

export function getJuliaVersion(availableReleases: string[], versionInput: string, includePrerelease: boolean = false, projectInput: string = undefined): string {

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Type 'undefined' is not assignable to type 'string'.

Check failure on line 111 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Type 'undefined' is not assignable to type 'string'.
let version: string

if (semver.valid(versionInput) == versionInput || versionInput.endsWith('nightly')) {
// versionInput is a valid version or a nightly version, use it directly
return versionInput
version = versionInput
} else if (versionInput == "MIN") {
// Resolve "MIN" to the minimum supported Julia version compatible with the project file
let versionRanges = getProjectJuliaCompatVersions(projectInput)
let minVersions = versionRanges.map(v => semver.minSatisfying(availableReleases, v, {includePrerelease}))

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.

Check failure on line 120 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Property 'map' does not exist on type 'Promise<string[]>'.
version = semver.sort(minCompatVersions.filter(v => v !== null))[0]

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Cannot find name 'minCompatVersions'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Type 'string | SemVer' is not assignable to type 'string'.

Check failure on line 121 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Cannot find name 'minCompatVersions'.
} else {
// Use the highest available version that matches versionInput
version = semver.maxSatisfying(availableReleases, versionInput, {includePrerelease})

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / check_pr

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, macOS-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, ubuntu-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.10-nightly, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.0.5, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (nightly, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1.2, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (^1.5.0-beta1, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x86, windows-latest)

Type 'string | null' is not assignable to type 'string'.

Check failure on line 124 in src/installer.ts

View workflow job for this annotation

GitHub Actions / test (1, x64, windows-latest)

Type 'string | null' is not assignable to type 'string'.
}

// Use the highest available version that matches versionInput
let version = semver.maxSatisfying(availableReleases, versionInput, {includePrerelease})
if (version == null) {
if (!version) {
throw new Error(`Could not find a Julia version that matches ${versionInput}`)
}

Expand Down
3 changes: 2 additions & 1 deletion src/setup-julia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async function run() {
const versionInput = core.getInput('version')
const includePrereleases = core.getInput('include-all-prereleases') == 'true'
const originalArchInput = core.getInput('arch')
const projectInput = core.getInput('project')

// It can easily happen that, for example, a workflow file contains an input `version: ${{ matrix.julia-version }}`
// while the strategy matrix only contains a key `${{ matrix.version }}`.
Expand All @@ -59,7 +60,7 @@ async function run() {

const versionInfo = await installer.getJuliaVersionInfo()
const availableReleases = await installer.getJuliaVersions(versionInfo)
const version = installer.getJuliaVersion(availableReleases, versionInput, includePrereleases)
const version = installer.getJuliaVersion(availableReleases, versionInput, includePrereleases, projectInput)
core.debug(`selected Julia version: ${arch}/${version}`)
core.setOutput('julia-version', version)

Expand Down

0 comments on commit f6c0c51

Please sign in to comment.