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

Function SetIgnoreShellMismatch

internal/lock/statehash.go:53–55  ·  view source on GitHub ↗

SetIgnoreShellMismatch is used to disable the shell comparison when checking if the state is up to date. This is useful when we don't load shellrc (e.g. running)

(ignore bool)

Source from the content-addressed store, hash-verified

51// SetIgnoreShellMismatch is used to disable the shell comparison when checking
52// if the state is up to date. This is useful when we don't load shellrc (e.g. running)
53func SetIgnoreShellMismatch(ignore bool) {
54 ignoreShellMismatch = ignore
55}
56
57func isStateUpToDate(args UpdateStateHashFileArgs) (bool, error) {
58 filesystemStateHash, err := readStateHashFile(args.ProjectDir)

Callers 1

RunScriptMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected