mirror of
https://github.com/actions/setup-go.git
synced 2024-11-26 18:26:12 +08:00
use actual version in key
This commit is contained in:
parent
89d7939d38
commit
65f50caf42
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -63607,8 +63607,7 @@ function run() {
|
|||||||
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
||||||
const packageManager = 'default';
|
const packageManager = 'default';
|
||||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||||
core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`);
|
yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
|
||||||
yield cache_restore_1.restoreCache(goVersion, packageManager, cacheDependencyPath);
|
|
||||||
}
|
}
|
||||||
// add problem matchers
|
// add problem matchers
|
||||||
const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json');
|
const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json');
|
||||||
|
@ -62,8 +62,7 @@ export async function run() {
|
|||||||
if (cache && isCacheFeatureAvailable()) {
|
if (cache && isCacheFeatureAvailable()) {
|
||||||
const packageManager = 'default';
|
const packageManager = 'default';
|
||||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||||
core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`)
|
await restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
|
||||||
await restoreCache(goVersion, packageManager, cacheDependencyPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// add problem matchers
|
// add problem matchers
|
||||||
|
Loading…
Reference in New Issue
Block a user