canonical / canonical/chisel

bug: path conflicts with two single globs

Open
#258 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
424
Forks
65
Avg merge
12d 19h
Merged PRs (30d)
1

Description

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 and 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

- the `libbinutils` issue in `chisel_releases`: https://github.com/canonical/chisel-releases/pull/776

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.