axodotdev / axodotdev/cargo-dist
Should receipts be stored in $XDG_STATE_HOME instead of $XDG_CONFIG_HOME?
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 149
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 32
Description
I come from uv, which uses cargo-dist. Installing uv creates a receipt at `$XDG_CONFIG_HOME/uv/uv-receipt.json`. I version control my `~/.config/` on some machines and currently gitignore the receipt.
However, the receipt seems more like state than a configuration file. Should it go in $XDG_STATE_HOME instead?
Contributor guide
Research direction
Start by locating where cargo-dist creates the receipt at $XDG_CONFIG_HOME/uv/uv-receipt.json and compare the intended roles of XDG_CONFIG_HOME and XDG_STATE_HOME. Confirm the project’s decision on the storage location, then update the relevant behavior and verify that installed receipts use the resolved location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100