Skip to content

bug: path conflicts with two single globs #258

@lczyk

Description

@lczyk

here is a short example based on libbinutils from 26.04:

package A:
/foo/bar/libopcodes-2.45.50-system.20251212.so
package B:
/foo/bar/libopcodes-2.45.50-arm64.so

we would like to glob the version (2.45.50) and the date string (20251212). the following globs cause conflict:

package A:
/foo/bar/libopcodes-*-system.*.so
package B:
/foo/bar/libopcodes-*-arm64.so
error: slices <slice-in-package-A> and <slice-in-package-B> conflict on /foo/bar/libopcodes-*-amd64.so and /foo/bar/libopcodes-*-system.*.so

when translating the globs to regex we get libopcodes[^\/]*-system\.[^\/]*\.so which matches only the intended expression: https://regex101.com/r/pYWots/1

Image

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