mirror of https://github.com/actions/setup-go.git
Update src/cache-restore.ts
Co-authored-by: Alex Shcherbakov <candiduslynx@users.noreply.github.com>
This commit is contained in:
parent
acb2fd8040
commit
847b9da5d2
|
@ -29,8 +29,8 @@ export const restoreCache = async (
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const cacheKeyPrefix = core.getInput('cache-key-prefix') || '';
|
const cacheKeyPrefix = core.getInput('cache-key-prefix') || 'setup-go'
|
||||||
const primaryKey = `${cacheKeyPrefix}setup-go-${platform}-go-${versionSpec}-${fileHash}`;
|
const primaryKey = `${cacheKeyPrefix}-${platform}-go-${versionSpec}-${fileHash}`;
|
||||||
core.debug(`primary key is ${primaryKey}`);
|
core.debug(`primary key is ${primaryKey}`);
|
||||||
|
|
||||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||||
|
|
Loading…
Reference in New Issue