devbox icon indicating copy to clipboard operation
devbox copied to clipboard

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

Open ghost opened this issue 11 months ago • 4 comments

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

ghost avatar Mar 10 '25 08:03 ghost

I am seeing this error also

mwatts avatar Mar 10 '25 20:03 mwatts

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.

ghost avatar Mar 12 '25 09:03 ghost

Having upgraded from NixOS Stable Channel 24.11 to 25.05, using the Devbox that comes with them (0.14.2 in 25.05), I'm getting this with projects that use Elixir, too, in both existing and newly-created Devbox environments.

Edit: see #2458

DavidOliver avatar Jul 15 '25 09:07 DavidOliver

I am also having the same issue. Are there any workarounds until this is fixed?

munjalpatel avatar Aug 29 '25 15:08 munjalpatel