MCPcopy Create free account
hub / github.com/cli/cli / cachePath

Method cachePath

script/ghmock/schemafiles.go:88–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (s schemaSource) cachePath() (string, error) {
89 dir, err := schemaCacheDir()
90 if err != nil {
91 return "", err
92 }
93 return filepath.Join(dir, s.fileName), nil
94}
95
96// updatePath is where ghmock schemas update writes the file: the path in the
97// environment variable if it's set, because that's the file ghmock uses, and

Callers 2

locateMethod · 0.95
updatePathMethod · 0.95

Calls 2

schemaCacheDirFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected