mirror of
https://github.com/actions/setup-go.git
synced 2025-12-17 05:02:34 +00:00
Unique primaryKey for cache based on buildTargetArch
This commit is contained in:
parent
c0137caad7
commit
af7fba4129
4 changed files with 16 additions and 6 deletions
|
|
@ -20,6 +20,7 @@ export async function run() {
|
|||
setGoToolchain();
|
||||
|
||||
const cache = core.getBooleanInput('cache');
|
||||
const buildTarget = core.getInput('buildTarget');
|
||||
core.info(`Setup go version spec ${versionSpec}`);
|
||||
|
||||
let arch = core.getInput('architecture') as Architecture;
|
||||
|
|
@ -73,7 +74,8 @@ export async function run() {
|
|||
await restoreCache(
|
||||
parseGoVersion(goVersion),
|
||||
packageManager,
|
||||
cacheDependencyPath
|
||||
cacheDependencyPath,
|
||||
buildTarget
|
||||
);
|
||||
} catch (error) {
|
||||
core.warning(`Restore cache failed: ${(error as Error).message}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue