Skip to content

fix(core-kotlin): fetch - Client Cacache middleware uses passed directory in initializeNative#105

Merged
tymmesyde merged 4 commits intomasterfrom
fix/client-cacache-directory
Dec 15, 2025
Merged

fix(core-kotlin): fetch - Client Cacache middleware uses passed directory in initializeNative#105
tymmesyde merged 4 commits intomasterfrom
fix/client-cacache-directory

Conversation

@elpiel
Copy link
Member

@elpiel elpiel commented Dec 2, 2025

  • pass cacache dir in initializeNative
  • make sure directory is writable and default to no cache if it's not

Fixes the issue:

Env:Failed to fetch: Failed to create cache directory for temporary files, at /data/local/tmp/http-cacache/tmp'

…variable if set instead of std::env::temp_dir

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
@elpiel elpiel requested review from TRtomasz, TheBeastLT and tymmesyde and removed request for TRtomasz December 2, 2025 08:20
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
@TRtomasz
Copy link
Member

@tymmesyde suggested to pass the directory path on core initialization instead setting it up via env variable

feat(kotlin): make sure cacache dir is writable

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
@elpiel elpiel changed the title fix(core-kotlin): fetch - Client Cacache middleware uses TMPDIR env. varaible fix(core-kotlin): fetch - Client Cacache middleware uses passed directory in initializeNative Dec 10, 2025
@tymmesyde tymmesyde merged commit 72b65a4 into master Dec 15, 2025
1 check 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.

3 participants