aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/internal/runsummary/globalhash_summary.go
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
commitfc8c5fdce62fb229202659408798a7b6c98f6e8b (patch)
tree7554f80e50de4af6fd255afa7c21bcdd58a7af34 /cli/internal/runsummary/globalhash_summary.go
parentdd84b9d64fb98746a230cd24233ff50a562c39c9 (diff)
downloadHydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.tar.gz
HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.zip
Diffstat (limited to 'cli/internal/runsummary/globalhash_summary.go')
-rw-r--r--cli/internal/runsummary/globalhash_summary.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/cli/internal/runsummary/globalhash_summary.go b/cli/internal/runsummary/globalhash_summary.go
deleted file mode 100644
index e24976d5..0000000
--- a/cli/internal/runsummary/globalhash_summary.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package runsummary
-
-import (
- "github.com/vercel/turbo/cli/internal/env"
- "github.com/vercel/turbo/cli/internal/fs"
- "github.com/vercel/turbo/cli/internal/turbopath"
-)
-
-// GlobalHashSummary contains the pieces of data that impacted the global hash (then then impacted the task hash)
-type GlobalHashSummary struct {
- GlobalCacheKey string `json:"rootKey"`
- GlobalFileHashMap map[turbopath.AnchoredUnixPath]string `json:"files"`
- RootExternalDepsHash string `json:"hashOfExternalDependencies"`
- Pipeline fs.PristinePipeline `json:"rootPipeline"`
-
- // This is a private field because and not in JSON, because we'll add it to each task
- envVars env.EnvironmentVariablePairs
- passthroughEnvVars env.EnvironmentVariablePairs
-}
-
-// NewGlobalHashSummary creates a GlobalHashSummary struct from a set of fields.
-func NewGlobalHashSummary(
- fileHashMap map[turbopath.AnchoredUnixPath]string,
- rootExternalDepsHash string,
- envVars env.DetailedMap,
- passthroughEnvVars env.EnvironmentVariableMap,
- globalCacheKey string,
- pipeline fs.PristinePipeline,
-) *GlobalHashSummary {
- return &GlobalHashSummary{
- envVars: envVars.All.ToSecretHashable(),
- passthroughEnvVars: passthroughEnvVars.ToSecretHashable(),
- GlobalFileHashMap: fileHashMap,
- RootExternalDepsHash: rootExternalDepsHash,
- GlobalCacheKey: globalCacheKey,
- Pipeline: pipeline,
- }
-}