MCPcopy Index your code
hub / github.com/celer-pkg/celer / GetDir

Method GetDir

configs/pkgcache_config.go:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func (d DevCacheConfig) GetDir() string {
109 homeDir, err := os.UserHomeDir()
110 if err != nil {
111 panic("cannot get user home dir: " + err.Error())
112 }
113
114 hostName := d.ctx.Platform().GetHostName()
115 return filepath.Join(homeDir, "celer", hostName+"-dev")
116}
117
118func (d DevCacheConfig) GetDevArtifactCache() context.DevAritifactCache {
119 return d.devArtifactCache

Callers 1

NewDevCacheConfigFunction · 0.95

Calls 3

ErrorMethod · 0.80
GetHostNameMethod · 0.65
PlatformMethod · 0.65

Tested by

no test coverage detected