mirror of
https://github.com/actions/setup-go.git
synced 2025-06-18 23:02:59 -06:00
Implementation of caching functionality for setup-go action (#228)
This commit is contained in:
parent
fcdc43634a
commit
b22fbbc292
72 changed files with 126791 additions and 8387 deletions
15
src/package-managers.ts
Normal file
15
src/package-managers.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
type SupportedPackageManagers = {
|
||||
[prop: string]: PackageManagerInfo;
|
||||
};
|
||||
|
||||
export interface PackageManagerInfo {
|
||||
dependencyFilePattern: string;
|
||||
cacheFolderCommandList: string[];
|
||||
}
|
||||
|
||||
export const supportedPackageManagers: SupportedPackageManagers = {
|
||||
default: {
|
||||
dependencyFilePattern: 'go.sum',
|
||||
cacheFolderCommandList: ['go env GOMODCACHE', 'go env GOCACHE']
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue