MCPcopy Index your code
hub / github.com/dagger/dagger / Pin

Method Pin

core/modulesource.go:877–886  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

875}
876
877func (src *ModuleSource) Pin() string {
878 switch src.Kind {
879 case ModuleSourceKindLocal:
880 return ""
881 case ModuleSourceKindGit:
882 return src.Git.Commit
883 default:
884 return ""
885 }
886}
887
888// GetRelatedModules returns the related modules (dependencies or toolchains)
889// based on the type.

Callers 2

getModuleConfigMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected