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

Method RootAddress

core/modtree.go:611–621  ·  view source on GitHub ↗

The address of the dagger module that is the root of the tree If the node is a "file", the root address is the URL of the filesystem root

()

Source from the content-addressed store, hash-verified

609// The address of the dagger module that is the root of the tree
610// If the node is a "file", the root address is the URL of the filesystem root
611func (node *ModTreeNode) RootAddress() string {
612 mod := node.Module.Self()
613 if mod == nil {
614 return ""
615 }
616 modSrc := mod.Source.Value.Self()
617 if modSrc == nil {
618 return ""
619 }
620 return modSrc.AsString()
621}
622
623func (node *ModTreeNode) Clone() *ModTreeNode {
624 cp := *node

Callers 2

tryRunCheckScaleOutMethod · 0.95

Calls 2

SelfMethod · 0.80
AsStringMethod · 0.45

Tested by

no test coverage detected