Skip to content

crash: bun add remote package tar.gz dependency loop and errors #20647

Open
@mizulu

Description

@mizulu

How can we reproduce the crash?

adding a package directly from a remote tar file

bun pm cache rm
bun add https://myhost/package-1.0.0.tar.gz // worked
bun add https://myhost/package-1.0.0.tar.gz?1 // has a dependency loop error will show
bun add https://myhost/package-1.0.0.tar.gz // some errors
bun add https://myhost/package-1.0.0.tar.gz // ENOTEMPTY: Directory not empty (NtSetInformationFile()) + InstallFailed extracting tarball from
bun pm cache rm
bun add https://myhost/bunner-1.0.0.tar.gz // bun add v1.2.18-canary.1 (29dd416) installed then panic(main thread): Internal assertion failure

bun add v1.2.18-canary.1 (29dd4166)
  🔍 Resolving [1/1] error: moving "https://myhost/package-1.0.0.tar.gz" to cache dir failed

Relevant log output

Stack Trace (bun.report)

Bun v1.2.18-canary (29dd416) on windows x86_64 [AddCommand]

panic: Internal assertion failure

Features: tsconfig, binlinks, extracted_packages, lifecycle_scripts, text_lockfile, spawn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bun installSomething that relates to the npm-compatible clientcrashAn issue that could cause a crashwindowsAn issue that is known to occur on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions