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

Method UpdateStdenv

internal/lock/lockfile.go:144–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144func (f *File) UpdateStdenv() error {
145 if err := nix.ClearFlakeCache(f.devboxProject.Stdenv()); err != nil {
146 return err
147 }
148 if err := f.Remove(f.devboxProject.Stdenv().String()); err != nil {
149 return err
150 }
151 return f.Add(f.devboxProject.Stdenv().String())
152}
153
154// TODO: We should improve a few issues with this function:
155// * It shared the same name as Devbox.Stdenv() which is confusing.

Callers 1

UpdateMethod · 0.80

Calls 5

RemoveMethod · 0.95
AddMethod · 0.95
ClearFlakeCacheFunction · 0.92
StdenvMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected