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

Method IsGoPackage

pkg/toolinstall/registry.go:96–103  ·  view source on GitHub ↗

IsGoPackage returns true if this package is installed via "go install".

()

Source from the content-addressed store, hash-verified

94
95// IsGoPackage returns true if this package is installed via "go install".
96func (p *Package) IsGoPackage() bool {
97 switch p.Type {
98 case "go_install", "go", "go_build":
99 return true
100 default:
101 return false
102 }
103}
104
105// BinaryName returns the primary binary name this package provides.
106func (p *Package) BinaryName() string {

Callers 5

InstallHostsMethod · 0.95
InstallMethod · 0.80
resolveVersionFunction · 0.80
TestPackage_IsGoPackageFunction · 0.80

Calls

no outgoing calls