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

Function collectLockfiles

internal/boxcli/multi/sync.go:96–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func collectLockfiles() ([]string, error) {
97 defer debug.FunctionTimer().End()
98
99 var lockfiles []string
100 err := filepath.WalkDir(
101 ".",
102 func(path string, dirEntry fs.DirEntry, err error) error {
103 if err != nil {
104 return err
105 }
106
107 if !dirEntry.IsDir() && filepath.Base(path) == "devbox.lock" {
108 lockfiles = append(lockfiles, path)
109 }
110
111 return nil
112 },
113 )
114
115 return lockfiles, err
116}

Callers 1

SyncLockfilesFunction · 0.85

Calls 2

FunctionTimerFunction · 0.92
EndMethod · 0.80

Tested by

no test coverage detected