visitedKey is the key used in visitedPorts to dedupe per-command processing.
()
| 82 | |
| 83 | // visitedKey is the key used in visitedPorts to dedupe per-command processing. |
| 84 | func (p Port) visitedKey() string { |
| 85 | if p.DevDep || p.HostDep { |
| 86 | return p.NameVersion() + " [dev]" |
| 87 | } |
| 88 | return p.NameVersion() |
| 89 | } |
| 90 | |
| 91 | func (p *Port) Init(ctx context.Context, nameVersion string) error { |
| 92 | p.ctx = ctx |
no test coverage detected