mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Better error if MSYS2 is missing
This commit is contained in:
+3
@@ -6494,6 +6494,9 @@ async function downloadExtractAndSetPATH(ruby) {
|
||||
async function linkMSYS2() {
|
||||
const toolCacheVersions = tc.findAllVersions('Ruby')
|
||||
toolCacheVersions.sort()
|
||||
if (toolCacheVersions.length == 0) {
|
||||
throw new Error('Could not find MSYS2 in the toolcache')
|
||||
}
|
||||
const latestVersion = toolCacheVersions.slice(-1)[0]
|
||||
const latestHostedRuby = tc.find('Ruby', latestVersion)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user