MCPcopy Create free account
hub / github.com/docker/docker-agent / PackageDir

Function PackageDir

pkg/toolinstall/paths.go:28–30  ·  view source on GitHub ↗

PackageDir returns the directory for a specific package version. This is ToolsDir()/packages/ / / /

(owner, repo, version string)

Source from the content-addressed store, hash-verified

26// PackageDir returns the directory for a specific package version.
27// This is ToolsDir()/packages/<owner>/<repo>/<version>/
28func PackageDir(owner, repo, version string) string {
29 return filepath.Join(ToolsDir(), "packages", owner, repo, version)
30}
31
32// RegistryDir returns the directory for cached registry data.
33func RegistryDir() string {

Callers 3

installGitHubReleaseMethod · 0.85
TestPackageDirFunction · 0.85

Calls 1

ToolsDirFunction · 0.85

Tested by 2

TestPackageDirFunction · 0.68