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

Function GitRefString

core/modulesource.go:865–875  ·  view source on GitHub ↗
(cloneRef, sourceRootSubpath, version string)

Source from the content-addressed store, hash-verified

863}
864
865func GitRefString(cloneRef, sourceRootSubpath, version string) string {
866 refPath := cloneRef
867 subPath := filepath.Join("/", sourceRootSubpath)
868 if subPath != "/" {
869 refPath += subPath
870 }
871 if version != "" {
872 refPath += "@" + version
873 }
874 return refPath
875}
876
877func (src *ModuleSource) Pin() string {
878 switch src.Kind {

Callers 5

canonicalModuleReferenceFunction · 0.92
remoteWorkspaceAddressFunction · 0.92
AsStringMethod · 0.85
ResolveDepToSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected