Skip to content

Add cache_path function with default and override support#9

Merged
ubiratansoares merged 2 commits into
rust-lang:mainfrom
Sandijigs:analyze-cache-path
Jun 24, 2026
Merged

Add cache_path function with default and override support#9
ubiratansoares merged 2 commits into
rust-lang:mainfrom
Sandijigs:analyze-cache-path

Conversation

@Sandijigs

Copy link
Copy Markdown
Contributor

When --repo is passed to analyze, the cache path for that repo is computed and printed. Default location is ~/.crabwatch/repos/<org>/<repo>, and --cache-dir overrides the base.

Also added dirs so we can find the home directory portably across platforms.

@ubiratansoares ubiratansoares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sandijigs please check my comment below

Comment thread src/command/analyze.rs Outdated

@ubiratansoares ubiratansoares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread Cargo.toml
@ubiratansoares ubiratansoares merged commit 769c6f5 into rust-lang:main Jun 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants