Use ImageOS for the cache key, so it also includes the OS version

This commit is contained in:
Benoit Daloze
2020-11-12 19:59:05 +01:00
parent bc0f274d1c
commit f4a8aa6c33
3 changed files with 19 additions and 2 deletions
+8
View File
@@ -59,6 +59,14 @@ function findUbuntuVersion() {
}
}
export function getImageOS() {
const imageOS = process.env['ImageOS']
if (!imageOS) {
throw new Error('The environment variable ImageOS must be set')
}
return imageOS
}
export function shouldExtractInToolCache(engine, version) {
return engine === 'ruby' && !isHeadVersion(version)
}