axodotdev / axodotdev/cargo-dist
APT package name gets truncated if it contains a dot
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 149
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 32
Description
I've tried out the new prerelease (`0.4.0-prerelease.2`), in a branch https://github.com/probe-rs/probe-rs/pull/1830.
It seems that the package name gets truncated if it contains a dot.
I've specified the libusb package like this:
```toml
libusb-1.0-0-dev = "*"
```
The result was that the workflow tried to install a `libusb-1` package.
I was able to fix this by putting the package name in quotes `"libusb-1.0-0-dev"`.
This seems to be a [TOML issue](https://toml.io/en/v1.0.0#keys), but maybe it could be detected somehow?
Contributor guide
Research direction
Start by reproducing the issue with the shown `libusb-1.0-0-dev = "*"` declaration, then read how APT package names are interpreted from the TOML configuration. The issue does not name files or tests. Done should mean a dotted package name is no longer silently truncated, or the unsupported syntax is clearly detected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100