mirror of
https://github.com/actions/setup-go.git
synced 2025-07-17 06:19:24 +02:00
Implementation of caching functionality for setup-go action (#228)
This commit is contained in:
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']
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user