axodotdev / axodotdev/cargo-dist

Should receipts be stored in $XDG_STATE_HOME instead of $XDG_CONFIG_HOME?

Open
#2,240 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.