Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Recursive manifest includes use the wrong base path #53

@magnusbaeck

Description

@magnusbaeck

When the manifest contains recursive inclusions,

default.xml -> foo/bar.xml -> foo/base.xml

the original Repo code uses the directory of the top-level file (default.xml) when resolving the path of the included file, i.e. the inclusion filenames would be according to the example above. This is pretty clear when reading the _ParseManifestXml source code and its include_root parameter.

The code in this module instead joins the directory of the current file with the name from the include element, i.e. in the example above it would incorrectly attempt to open foo/foo/base.xml.

f, err := path.AbsJoin(filepath.Dir(file), i.Name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions