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

Function FlakeUpdate

internal/nix/flake_update.go:14–22  ·  view source on GitHub ↗
(ProfileDir string)

Source from the content-addressed store, hash-verified

12)
13
14func FlakeUpdate(ProfileDir string) error {
15 ux.Finfof(os.Stderr, "Running \"nix flake update\"\n")
16 cmd := Command("flake", "update")
17 if nix.AtLeast(Version2_19) {
18 cmd.Args = append(cmd.Args, "--flake")
19 }
20 cmd.Args = append(cmd.Args, ProfileDir)
21 return cmd.Run(context.TODO())
22}

Callers 1

UpdateMethod · 0.92

Calls 4

FinfofFunction · 0.92
AtLeastFunction · 0.92
CommandFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected