Skip to content

manifest node's Path property should be node's full path instead of it's directory path  #344

@Kostov6

Description

@Kostov6

What happened:

switch parent.Type {
case "dir":
node.Path = path.Join(parent.Path, parent.Dir)
case "manifest":
node.Path = parent.Path
default:
return fmt.Errorf("parent node \n\n%s\n is not a dir or manifest", node)
}
return nil

What you expected to happen:
node.Path to include node.Name

In other words

func (n *Node) NodePath() string {
return path.Join(n.Path, n.Name())
}

to become

func (n *Node) NodePath() string {
	return n.Path
}

How to categorize this issue?

/kind bug
/priority 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBuglifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.priority/3Priority (lower number equals higher priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions