(env map[string]string)
| 1105 | } |
| 1106 | |
| 1107 | func (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 |
no test coverage detected