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

Error: package darwin.apple_sdk.frameworks.CoreServices not found in config #2557

Open
carlotm opened this issue Mar 10, 2025 · 2 comments
Open
Labels
bug Something isn't working triage Issue needs triage

Comments

@carlotm
Copy link

carlotm commented Mar 10, 2025

What happened?

I got warnings about packages in legacy format, suggesting to run devbox update

devbox update returns an error.

Steps to reproduce

  1. devbox init
  2. devbox add [email protected]
  3. devbox shell This command prints: Warning: Your devbox.json contains packages in legacy format. Please run devbox update to update your devbox.json.
  4. devbox update This commands errors with:
Warning: Your devbox.json contains packages in legacy format. Please run `devbox update` to update your devbox.json.
Updating darwin.apple_sdk.frameworks.CoreServices -> darwin.apple_sdk.frameworks.CoreServices@latest
Error: package darwin.apple_sdk.frameworks.CoreServices not found in config

Command

update

devbox.json

{
  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
  "packages": ["[email protected]"],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.14.0

Nix version

nix (Nix) 2.26.2

What system does this bug occur on?

Linux (x86-64)

Debug logs

time=2025-03-10T09:30:53.075+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:125 msg="searching for config file (including parent directories)" path=.
time=2025-03-10T09:30:53.075+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:146 msg="trying config file" path=devbox.json
time=2025-03-10T09:30:53.075+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:133 msg="config file found" path=/tmp/reproduce/devbox.json dur=147.058µs
time=2025-03-10T09:30:53.075+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
time=2025-03-10T09:30:53.075+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:125 msg="searching for config file (including parent directories)" path=.
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:146 msg="trying config file" path=devbox.json
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:133 msg="config file found" path=/tmp/reproduce/devbox.json dur=47.411µs
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
time=2025-03-10T09:30:53.076+01:00 level=DEBUG source=go.jetpack.io/devbox/nix/nix.go:143 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug"
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/nix/nix.go:143 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug" cmd.path=/nix/var/nix/profiles/default/bin/nix cmd.pid=16120 cmd.code=0 cmd.dur=15.189375ms
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:125 msg="searching for config file (including parent directories)" path=.
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:146 msg="trying config file" path=devbox.json
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:133 msg="config file found" path=/tmp/reproduce/devbox.json dur=111.341µs
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
Warning: Your devbox.json contains packages in legacy format. Please run `devbox update` to update your devbox.json.
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
Updating darwin.apple_sdk.frameworks.CoreServices -> darwin.apple_sdk.frameworks.CoreServices@latest
Error: package darwin.apple_sdk.frameworks.CoreServices not found in config

time=2025-03-10T09:30:53.091+01:00 level=ERROR source=go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=f3c78997422046cdbb676530eb314219 stack=<nil>
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:125 msg="searching for config file (including parent directories)" path=.
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:146 msg="trying config file" path=devbox.json
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devconfig/config.go:133 msg="config file found" path=/tmp/reproduce/devbox.json dur=35.918µs
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=elixir mode=auto
time=2025-03-10T09:30:53.091+01:00 level=DEBUG source=go.jetpack.io/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=darwin.apple_sdk.frameworks.CoreServices mode=auto
@carlotm carlotm added bug Something isn't working triage Issue needs triage labels Mar 10, 2025
@mwatts
Copy link

mwatts commented Mar 10, 2025

I am seeing this error also

@carlotm
Copy link
Author

carlotm commented Mar 12, 2025

If I then run devbox list I see darwin.apple_sdk.frameworks.CoreServices@latest among the installed packages.

Seems strange as I am on Linux?
I don't know what that thing is.

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

2 participants