Skip to content

Crash trying to add a private Github repo as a package #19350

Open
@nathan-hello

Description

@nathan-hello

package.json file

{
  "name": "lib-avui-template",
  "version": "0.0.1",
  "description": "",
  "type": "module",
  "module": "dist/index.js",
  "types": "dist/index.d.ts",
  "scripts": {
    "build": "vite build"
  },
  "devDependencies": {
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "@types/node": "^22.15.3",
    "@types/react": "19.1.2",
    "@types/react-dom": "19.1.2",
    "@vitejs/plugin-react": "^4.3.4",
    "prettier": "3.5.0",
    "vite": "^6.0.2",
    "vite-plugin-dts": "^4.3.0"
  },
  "dependencies": {
    "lucide-react": "^0.503.0",
    "tailwind-merge": "^2.6.0",
    "use-join": "^1.5.3",
    "zod": "^3.24.2",
    "avui": "git+https://[email protected]/sigsix/lib-avui-core.git#v1.0.0"
  },
  "peerDependencies": {
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "tailwindcss": "^3.4.17"
  }
}

How can we reproduce the crash?

This is 100% because the "avui": "git+https://[email protected]/sigsix/lib-avui-core.git#v1.0.0" url is malformed. It has an extra git in the beginning. Feel free to close if no one cares.

Relevant log output

PS C:\Users\me\dev\sigsix\.lib\lib-avui-vtc> bun install --force
bun install v1.2.2 (c1708ea6)
  🔍 Resolving [1/1] ============================================================
Bun v1.2.2 (c1708ea6) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\me\.bun\bin\bun.exe" "install" "--force"
Features: git_dependencies text_lockfile 
Elapsed: 9713ms | User: 46ms | Sys: 0ms
RSS: 71.87MB | Peak: 71.87MB | Commit: 108.66MB | Faults: 17806

panic(main thread): access of union field 'git_clone' while field 'package_manifest' is active
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.2.2 (c1708ea) on windows x86_64 [InstallCommand]

panic: access of union field 'git_clone' while field 'package_manifest' is active

Features: git_dependencies, text_lockfile

Sentry Issue: BUN-2DX

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