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
()
| 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 |
| 611 | func (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 | |
| 623 | func (node *ModTreeNode) Clone() *ModTreeNode { |
| 624 | cp := *node |
no test coverage detected