mirror of
https://github.com/actions/setup-go.git
synced 2025-07-19 15:09:37 +02:00
Enable caching by default with default input (#332)
This commit is contained in:
14
src/main.ts
14
src/main.ts
@@ -62,11 +62,15 @@ export async function run() {
|
||||
if (cache && isCacheFeatureAvailable()) {
|
||||
const packageManager = 'default';
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||
await restoreCache(
|
||||
parseGoVersion(goVersion),
|
||||
packageManager,
|
||||
cacheDependencyPath
|
||||
);
|
||||
try {
|
||||
await restoreCache(
|
||||
parseGoVersion(goVersion),
|
||||
packageManager,
|
||||
cacheDependencyPath
|
||||
);
|
||||
} catch (error) {
|
||||
core.warning(`Restore cache failed: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
// add problem matchers
|
||||
|
Reference in New Issue
Block a user