Skip to content

GitHub Sync fails with PathAlreadyExists on bun install (web environment) #818

Description

@lostmga

Hey, ran into a sync failure using the web interface — GitHub sync completes fine but the dependency install step errors out with a bunch of PathAlreadyExists messages.
Looks like bun is choking when trying to copy packages from cache to destination, probably because some files already exist from a previous (partial?) install. The weird part is that 370 packages installed successfully, but 27 failed — so it's not a total failure, just enough to break things.
Here's the relevant part of the log:
PathAlreadyExists: failed copying files from cache to destination for package @hookform/resolvers
PathAlreadyExists: failed copying files from cache to destination for package axios
PathAlreadyExists: failed copying files from cache to destination for package convex
PathAlreadyExists: failed copying files from cache to destination for package zod
... (27 packages total)
Full message: 370 packages installed [53.41s] — Failed to install 27 packages
Bun version: 1.3.14

Platform: Windows
My guess is the sync environment isn't cleaning up node_modules or the bun cache between runs, causing conflicts on subsequent syncs. A bun install --no-cache or wiping the cache dir before install might be enough to fix it.
Not a blocker if I retry the sync, but it's inconsistent enough to be annoying. Let me know if you need the full log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions