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

Installing yq-go globally breaks devbox.json parsing #2432

Open
chrda81 opened this issue Dec 3, 2024 · 0 comments
Open

Installing yq-go globally breaks devbox.json parsing #2432

chrda81 opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@chrda81
Copy link

chrda81 commented Dec 3, 2024

What happened?

I wanted to use yq 4.x globally, so i installed it via devbox global add yq-go. But after that, the command refresh-global returns the error

Error: Error loading devbox.json.
source: hujson: line 21, column 3: parsing array after value: unexpected EOF

I cannot add or remove further packages to the global devbox.json until I remove the package yq-go manually. After that everything is working as expected. But I still wanted to use yq 4.x globally...

Steps to reproduce

  1. devbox global add yq-go
  2. refresh-global --> breaks devbox global installation
  3. manually remove yq-go from global devbox.json
  4. refresh-global --> is working again

Command

No response

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.5/.schema/devbox.schema.json",
  "packages": [
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "libargon2@latest",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "yq-go@latest"
  ]
}

Devbox version

0.13.5

Nix version

2.24.9

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

@chrda81 chrda81 added bug Something isn't working triage Issue needs triage labels Dec 3, 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 triage Issue needs triage
Development

No branches or pull requests

1 participant