mirror of
https://github.com/actions/setup-go.git
synced 2025-04-24 01:50:52 +00:00
Fix changes requests
This commit is contained in:
parent
99b2e737de
commit
fa1068afe0
3 changed files with 13 additions and 4 deletions
|
@ -8,6 +8,15 @@ This action sets up a go environment for use in actions by:
|
|||
- Optionally downloading and caching a version of Go by version and adding to `PATH`.
|
||||
- Registering problem matchers for error output.
|
||||
|
||||
# V4
|
||||
|
||||
The V4 edition of the action offers:
|
||||
|
||||
- Enables caching by default
|
||||
- Does not fail if caching fails for any reason
|
||||
|
||||
The action will try to enable caching unless the `cache` input explicitly set to false.
|
||||
|
||||
# V3
|
||||
|
||||
The V3 edition of the action offers:
|
||||
|
|
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -63617,8 +63617,8 @@ function run() {
|
|||
try {
|
||||
yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
|
||||
}
|
||||
catch (e) {
|
||||
core.warning(`Restore cache failed: ${e.message}`);
|
||||
catch (error) {
|
||||
core.warning(`Restore cache failed: ${error.message}`);
|
||||
}
|
||||
}
|
||||
// add problem matchers
|
||||
|
|
|
@ -68,8 +68,8 @@ export async function run() {
|
|||
packageManager,
|
||||
cacheDependencyPath
|
||||
);
|
||||
} catch (e) {
|
||||
core.warning(`Restore cache failed: ${e.message}`);
|
||||
} catch (error) {
|
||||
core.warning(`Restore cache failed: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue