Open
Description
What happened?
Short version
~/d/wp-calypso $ which git
/usr/bin/git
~/d/wp-calypso $ git --version
xcrun: error: missing DEVELOPER_DIR path: /nix/store/lsjl29pwp5if71jfgxlv8fifsrpax805-apple-sdk-11.3
Long version
~/dev $ which git
/usr/bin/git
~/dev $ git --version
git version 2.39.5 (Apple Git-154)
~/dev $ cd wp-calypso/
direnv: loading ~/dev/wp-calypso/.envrc
direnv: using devbox
direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +DEVBOX_COREPACK_ENABLED +DEVBOX_NIX_ENV_PATH_5dabf7ee44c59778d0282ed56adde6db477c34da6f71f0be48c1f5d01c0ffd74 +DEVELOPER_DIR +HOST_PATH +IN_NIX_SHELL +LD +LD_DYLD_PATH +MACOSX_DEPLOYMENT_TARGET +NIX_APPLE_SDK_VERSION +NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_TARGET_HOST_aarch64_apple_darwin +NIX_BUILD_CORES +NIX_CC +NIX_CC_WRAPPER_TARGET_HOST_aarch64_apple_darwin +NIX_CFLAGS_COMPILE +NIX_DONT_SET_RPATH +NIX_DONT_SET_RPATH_FOR_BUILD +NIX_ENFORCE_NO_NATIVE +NIX_HARDENING_ENABLE +NIX_IGNORE_LD_THROUGH_GCC +NIX_LDFLAGS +NIX_NO_SELF_RPATH +NIX_STORE +NM +NODE_PATH +OBJCOPY +OBJDUMP +PATH_LOCALE +RANLIB +SDKROOT +SIZE +SOURCE_DATE_EPOCH +STRINGS +STRIP +ZERO_AR_DATE +__DEVBOX_SHELLENV_HASH_5dabf7ee44c59778d0282ed56adde6db477c34da6f71f0be48c1f5d01c0ffd74 +__darwinAllowLocalNetworking +__impureHostDeps +__propagatedImpureHostDeps +__propagatedSandboxProfile +__sandboxProfile +__structuredAttrs +buildInputs +buildPhase +builder +cmakeFlags +configureFlags +depsBuildBuild +depsBuildBuildPropagated +depsBuildTarget +depsBuildTargetPropagated +depsHostHost +depsHostHostPropagated +depsTargetTarget +depsTargetTargetPropagated +doCheck +doInstallCheck +dontAddDisableDepTrack +mesonFlags +name +nativeBuildInputs +out +outputs +patches +phases +preferLocalBuild +propagatedBuildInputs +propagatedNativeBuildInputs +shell +shellHook +stdenv +strictDeps +system ~DEVBOX_CONFIG_DIR ~DEVBOX_PACKAGES_DIR ~DEVBOX_PATH_STACK ~DEVBOX_PROJECT_ROOT ~DEVBOX_WD ~PATH
~/d/wp-calypso $ which git
/usr/bin/git
~/d/wp-calypso $ git --version
xcrun: error: missing DEVELOPER_DIR path: /nix/store/lsjl29pwp5if71jfgxlv8fifsrpax805-apple-sdk-11.3
Note: I have tried running the
sudo xcode-select --reset
sudo xcode-select --switch /Library/Developer/CommandLineTools
as mentioned in this comment and it does not fix.
I have also used 0.14 in this project directory successfully for a while, and it just broke today. Not sure what changed..
I might have run devbox global run -- nix store gc --extra-experimental-features nix-command
since then - maybe that was it?
There is no /nix/store/lsjl29pwp5if71jfgxlv8fifsrpax805-apple-sdk-11.3
directory, but there are several references to it in the /nix/store directory:
/n/store $ rg lsjl29pwp5if71jfgxl -l
621mfk2hws9gmjpjl696vq5q2nvy9hdd-cctools-binutils-darwin-wrapper-1010.6.drv
8vm0zalbws774ak5kz19m11441mnddn1-apple-sdk-11.3.drv
0vwi86yxw6claaa4xhacs6c978fpdc6j-clang-wrapper-19.1.7.drv
5yg9nrq56y08llgxpfzb3jw1nfxcb0ak-stdenv-darwin.drv
06cmqhprnwmznmx2d9nksyjln6cbbwcl-bootstrap-stage4-clang-wrapper-19.1.7.drv
77y7i51a0y9rcak4xiqc3x3w871564p8-bootstrap-stage4-stdenv-darwin.drv
plfp1iqdvdsg33fckqgr8d10956iqmj9-stdenv-darwin.drv
cygzah1cn12n4062lw0rsad8fcfvrj9v-cctools-binutils-darwin-wrapper-1010.6.drv
yplkc3rxmdyqcgjav1l2z3jsn5xxay8i-bootstrap-stage4-stdenv-darwin.drv
Steps to reproduce
Not sure.
Command
No response
devbox.json
Devbox version
0.14.0
Nix version
nix (Nix) 2.24.7
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response