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

Method AsString

core/modulesource.go:852–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

850}
851
852func (src *ModuleSource) AsString() string {
853 switch src.Kind {
854 case ModuleSourceKindLocal:
855 return filepath.Join(src.Local.ContextDirectoryPath, src.SourceRootSubpath)
856
857 case ModuleSourceKindGit:
858 return GitRefString(src.Git.CloneRef, src.SourceRootSubpath, src.Git.Version)
859
860 default:
861 return ""
862 }
863}
864
865func GitRefString(cloneRef, sourceRootSubpath, version string) string {
866 refPath := cloneRef

Callers 2

parseCallerCalleeRefsFunction · 0.95

Calls 1

GitRefStringFunction · 0.85

Tested by 1