MCPcopy Index your code
hub / github.com/jetify-com/devbox / addHashToEnv

Method addHashToEnv

internal/devbox/devbox.go:1107–1113  ·  view source on GitHub ↗
(env map[string]string)

Source from the content-addressed store, hash-verified

1105}
1106
1107func (d *Devbox) addHashToEnv(env map[string]string) error {
1108 hash, err := cachehash.JSON(env)
1109 if err == nil {
1110 env[d.shellEnvHashKey()] = hash
1111 }
1112 return err
1113}
1114
1115// parseEnvAndExcludeSpecialCases converts env as []string to map[string]string
1116// In case of pure shell, it leaks HOME and it leaks PATH with some modifications

Callers 1

computeEnvMethod · 0.95

Calls 2

shellEnvHashKeyMethod · 0.95
JSONFunction · 0.92

Tested by

no test coverage detected