Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bun install missing files for local packages #11835

Closed
alan-agius4 opened this issue Jun 13, 2024 · 0 comments · Fixed by #11864
Closed

Bun install missing files for local packages #11835

alan-agius4 opened this issue Jun 13, 2024 · 0 comments · Fixed by #11864
Assignees
Labels
bug Something isn't working needs triage

Comments

@alan-agius4
Copy link

What version of Bun is running?

1.1.13

What platform is your computer?

Linux 6.6.15-2rodete2-amd64 x86_64 unknown

What steps can reproduce the bug?

When using bun install on a local registry (verdaccio) some packages are not being extracted correctly. This however is not the case when using another package manager.

$ git clone https://github.com/alan-agius4/bun-issue-local-registry.git
$ cd bun-issue-local-registry
$ bun install
$ bun run start

In another terminal

$ NPM_CONFIG_REGISTRY=http://localhost:4444 bun install --no-save @schematics/angular
$ tree node_modules/@schematics/angular -L 1

node_modules/@schematics/angular
├── application
├── app-shell
├── files
├── LICENSE
└── README.md

4 directories, 2 files


$ NPM_CONFIG_REGISTRY=http://localhost:4444 npm install --no-save @schematics/angular
$ tree node_modules/@schematics/angular -L 1

node_modules/@schematics/angular
├── application
├── app-shell
├── class
├── collection.json
├── component
├── config
├── directive
├── e2e
├── enum
├── environments
├── guard
├── interceptor
├── interface
├── library
├── LICENSE
├── migrations
├── module
├── ng-new
├── package.json
├── pipe
├── README.md
├── resolver
├── server
├── service
├── service-worker
├── ssr
├── third_party
├── utility
├── web-worker
└── workspace

27 directories, 4 files

What is the expected behavior?

The local package contains all the files.

What do you see instead?

The extracted / downloaded package is corrupted.

Additional information

No response

@alan-agius4 alan-agius4 added bug Something isn't working needs triage labels Jun 13, 2024
@alan-agius4 alan-agius4 changed the title Bun install extracting package correctly for local packages Bun install missing file for local packages Jun 13, 2024
@alan-agius4 alan-agius4 changed the title Bun install missing file for local packages Bun install missing files for local packages Jun 13, 2024
@dylan-conway dylan-conway self-assigned this Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants