Skip to content

Do not use environment var for cache dir#4

Merged
RMPR merged 1 commit into
zivid:masterfrom
vawale:use-input-arg-for-halide-cache-var
May 19, 2026
Merged

Do not use environment var for cache dir#4
RMPR merged 1 commit into
zivid:masterfrom
vawale:use-input-arg-for-halide-cache-var

Conversation

@vawale
Copy link
Copy Markdown
Contributor

@vawale vawale commented May 18, 2026

Using environment variables makes it difficult to have hermetic builds. Lets avoid them in our tools.

Using environment variables makes it difficult to have hermetic builds.
Lets avoid them in our tools.
Comment thread halide-cache/src/main.rs
generated_header: PathBuf,
#[arg(long)]
base_dir: Option<PathBuf>,
#[arg(long, default_value_os_t = home_dir().unwrap().join(".cache/halide-cache"))]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this work on Windows? I will test it then merge if it does.

@RMPR RMPR merged commit b55f91c into zivid:master May 19, 2026
5 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