MCPcopy Index your code
hub / github.com/cli/cli / lockfilePath

Function lockfilePath

internal/skills/lockfile/lockfile.go:43–49  ·  view source on GitHub ↗

lockfilePath returns the absolute path to the lock file.

()

Source from the content-addressed store, hash-verified

41
42// lockfilePath returns the absolute path to the lock file.
43func lockfilePath() (string, error) {
44 home, err := os.UserHomeDir()
45 if err != nil {
46 return "", err
47 }
48 return filepath.Join(home, agentsDir, lockFile), nil
49}
50
51// readFrom loads the lock file from an open file handle.
52// Returns an empty file if the content is empty, corrupt, or incompatible.

Callers 3

TestRecordInstallFunction · 0.85
RecordInstallFunction · 0.85
acquireFLockFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by 1

TestRecordInstallFunction · 0.68