2022-05-25 12:07:29 +02:00
|
|
|
export enum State {
|
|
|
|
|
CachePrimaryKey = 'CACHE_KEY',
|
|
|
|
|
CacheMatchedKey = 'CACHE_RESULT'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export enum Outputs {
|
2026-09-18 20:35:51 +05:30
|
|
|
CacheHit = 'cache-hit',
|
2026-09-25 21:05:28 +05:30
|
|
|
GoBinPath = 'go-bin-path'
|
2022-05-25 12:07:29 +02:00
|
|
|
}
|
2026-09-25 21:05:28 +05:30
|
|
|
|
|
|
|
|
export const GO_ENV_OUTPUTS = [
|
|
|
|
|
'GOPATH',
|
|
|
|
|
'GOBIN',
|
|
|
|
|
'GOROOT',
|
|
|
|
|
'GOCACHE',
|
|
|
|
|
'GOMODCACHE',
|
|
|
|
|
'GOOS',
|
|
|
|
|
'GOARCH',
|
|
|
|
|
'GOTOOLDIR'
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
export type GoEnvVar = (typeof GO_ENV_OUTPUTS)[number];
|
|
|
|
|
export type GoEnv = Partial<Record<GoEnvVar, string>>;
|