Skip to content

[bun install] Don't save manifest cache when --no-cache is passed - #19752

Merged
Jarred-Sumner merged 1 commit into
mainfrom
jarred/no-manifest-cache
May 19, 2025
Merged

Jarred-Sumner merged 1 commit into
mainfrom
jarred/no-manifest-cache

Conversation

@Jarred-Sumner

Copy link
Copy Markdown
Collaborator

What does this PR do?

We were saving the manifest cache even though --no-cache was passed.

How did you verify your code works?

@Jarred-Sumner
Jarred-Sumner requested review from a team and cirospaciari and removed request for a team May 19, 2025 08:27
@robobun

robobun commented May 19, 2025 •

Copy link
Copy Markdown
Collaborator
Updated 2:28 AM PT - May 19th, 2025

❌ @Jarred-Sumner, your commit 0acaab6 has 2 failures in Build #16784:


🧪   To try this PR locally:

bunx bun-pr 19752

That installs a local version of the PR into your bun-19752 executable, so you can run:

bun-19752 --bun

Comment thread src/install/install.zig
manager.getTemporaryDirectory(),
manager.getCacheDirectory(),
);
if (manager.options.enable.manifest_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.

is possible to write a test to check if the cache is saved? IDK if we can pass the cache location so we can use a tmp random folder for that

@Jarred-Sumner
Jarred-Sumner merged commit 8151827 into main May 19, 2025
@Jarred-Sumner
Jarred-Sumner deleted the jarred/no-manifest-cache branch May 19, 2025 18:39
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