MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Hash

Method Hash

deb/version.go:192–194  ·  view source on GitHub ↗

Hash calculates some predefined unique ID of Dependency

()

Source from the content-addressed store, hash-verified

190
191// Hash calculates some predefined unique ID of Dependency
192func (d *Dependency) Hash() string {
193 return fmt.Sprintf("%s:%s:%d:%s", d.Architecture, d.Pkg, d.Relation, d.Version)
194}
195
196// String produces human-readable representation
197func (d *Dependency) String() string {

Callers 4

UpdateFilesMethod · 0.45
TestHashMethod · 0.45
depSliceDeduplicateFunction · 0.45
VerifyDependenciesMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestHashMethod · 0.36