mirror of
https://codeberg.org/actions/setup-go.git
synced 2024-01-07 17:16:05 +00:00
try get path
This commit is contained in:
parent
de201a09c0
commit
2e7414f276
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -63605,7 +63605,8 @@ 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}`);
|
let goPath = yield io.which('go');
|
||||||
|
core.info(`Version spec is ${versionSpec}, go path is ${goPath}`);
|
||||||
yield cache_restore_1.restoreCache(versionSpec, packageManager, cacheDependencyPath);
|
yield cache_restore_1.restoreCache(versionSpec, packageManager, cacheDependencyPath);
|
||||||
}
|
}
|
||||||
// add problem matchers
|
// add problem matchers
|
||||||
|
|
|
@ -59,7 +59,8 @@ 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}`)
|
let goPath = await io.which('go');
|
||||||
|
core.info(`Version spec is ${versionSpec}, go path is ${goPath}`)
|
||||||
await restoreCache(versionSpec, packageManager, cacheDependencyPath);
|
await restoreCache(versionSpec, packageManager, cacheDependencyPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue