Skip to content

ResolutionSelector with a parent with a range is parsed incorrectly #228

Description

@selfisekai

The key express@npm:4.21.0/content-type is parsed as:

Descriptor(
    DescriptorResolutionSelector {
        descriptor: Descriptor {
            ident: Ident(
                "express",
            ),
            range: AnonymousTag(
                AnonymousTagRange {
                    tag: "npm:4.21.0/content-type",
                },
            ),
            parent: None,
        },
    },
)

This results in an error (also incorrectly pointing at the map value):

Error: Package manifest failed to parse (~/chaste/chaste-yarn/test_workspaces/v9_resolutions/package.json): File parsing error (Invalid syntax: the range must be an anonymous semver range at line 9 column 51

        "~1.0.5",
      
        ........^.......
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions