Open mikenikles opened 1 month ago
When I run devbox global push <git-repo>, I get the following error message:
devbox global push <git-repo>
cp: /Users/m/.local/share/devbox/global/default/profile: No such file or directory Error: exit status 1
The symlink itself exists:
m@x default % ll /Users/m/.local/share/devbox/global/default/profile lrwxr-xr-x@ 1 m staff 14B 2 Apr 2023 /Users/m/.local/share/devbox/global/default/profile -> profile-2-link m@x default % ll /Users/m/.local/share/devbox/global/default/profile-2-link lrwxr-xr-x@ 1 m staff 51B 2 Apr 2023 /Users/m/.local/share/devbox/global/default/profile-2-link -> /nix/store/2wbm84c9ypm69n8kr9i8qkxy1pbryjhc-profile
But the location in the Nix store doesn't exist:
m@x default % ll /nix/store/2wbm84c9ypm69n8kr9i8qkxy1pbryjhc-profile ls: /nix/store/2wbm84c9ypm69n8kr9i8qkxy1pbryjhc-profile: No such file or directory
global
`m@x default % cat `devbox global path`/devbox.json`: { "packages": [ "git@latest", "tree@latest", "neovim@latest", "lazygit@latest", "ncdu@latest", "ripgrep@latest", "helix@latest", "typescript-language-server@latest" ], "shell": {}, "nixpkgs": { "commit": "f80ac848e3d6f0c12c52758c0f25c10c97ca3b62" } }
0.12.0
nix (Nix) 2.19.3
macOS (Apple Silicon)
m@x default % DEVBOX_DEBUG=1 devbox global push https://github.com/mootoday/devbox-global time=2024-07-12T08:22:41.700-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:41.700-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:41.701-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:41.701-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:41.716-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path=/Users/m/.local/share/devbox/global/default Info: Pushing global config to https://github.com/mootoday/devbox-global Cloning into '/var/folders/81/8dsh7b6x3qj5g852dvxs8k3r0000gn/T/devbox4127416805'... warning: You appear to have cloned an empty repository. cp: /Users/m/.local/share/devbox/global/default/profile: No such file or directory Error: exit status 1
time=2024-07-12T08:22:50.841-07:00 level=ERROR source=go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:68 msg="command error" stderr="" execid=f7f07214f0e647f28c3f2b9ab6e27998 stack="exit status 1\ngo.jetpack.io/devbox/internal/fileutil.CopyAll\n\tgo.jetpack.io/devbox/internal/fileutil/dir.go:24\ngo.jetpack.io/devbox/internal/pullbox/git.Push\n\tgo.jetpack.io/devbox/internal/pullbox/git/push.go:31\ngo.jetpack.io/devbox/internal/pullbox.(pullbox).Push\n\tgo.jetpack.io/devbox/internal/pullbox/pullbox.go:124\ngo.jetpack.io/devbox/internal/devbox.(Devbox).Push\n\tgo.jetpack.io/devbox/internal/devbox/pushpull.go:23\ngo.jetpack.io/devbox/internal/boxcli.pushCmdFunc\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:58\ngo.jetpack.io/devbox/internal/boxcli.pushCmd.func1\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:29\ngithub.com/spf13/cobra.(Command).execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(Command).Execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1039\ngo.jetpack.io/devbox/internal/boxcli/midcobra.(midcobraExecutable).Execute\n\tgo.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:61\ngo.jetpack.io/devbox/internal/boxcli.Execute\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:115\ngo.jetpack.io/devbox/internal/boxcli.Main\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:138\nmain.main\n\t./main.go:11\nruntime.main\n\truntime/proc.go:271\nruntime.goexit\n\truntime/asm_arm64.s:1222" time=2024-07-12T08:22:50.841-07:00 level=ERROR source=go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=f7f07214f0e647f28c3f2b9ab6e27998 stack="exit status 1\ngo.jetpack.io/devbox/internal/fileutil.CopyAll\n\tgo.jetpack.io/devbox/internal/fileutil/dir.go:24\ngo.jetpack.io/devbox/internal/pullbox/git.Push\n\tgo.jetpack.io/devbox/internal/pullbox/git/push.go:31\ngo.jetpack.io/devbox/internal/pullbox.(pullbox).Push\n\tgo.jetpack.io/devbox/internal/pullbox/pullbox.go:124\ngo.jetpack.io/devbox/internal/devbox.(Devbox).Push\n\tgo.jetpack.io/devbox/internal/devbox/pushpull.go:23\ngo.jetpack.io/devbox/internal/boxcli.pushCmdFunc\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:58\ngo.jetpack.io/devbox/internal/boxcli.pushCmd.func1\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:29\ngithub.com/spf13/cobra.(Command).execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(Command).Execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1039\ngo.jetpack.io/devbox/internal/boxcli/midcobra.(midcobraExecutable).Execute\n\tgo.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:61\ngo.jetpack.io/devbox/internal/boxcli.Execute\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:115\ngo.jetpack.io/devbox/internal/boxcli.Main\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:138\nmain.main\n\t./main.go:11\nruntime.main\n\truntime/proc.go:271\nruntime.goexit\n\truntime/asm_arm64.s:1222" time=2024-07-12T08:22:50.841-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:50.841-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:50.889-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/nix/nix.go:337 msg="nix --version --debug output" out="nix (Nix) 2.19.3\nSystem type: aarch64-darwin\nAdditional system types: x86_64-darwin\nFeatures: gc, signed-caches\nSystem configuration file: /etc/nix/nix.conf\nUser configuration files: /Users/m/.config/nix/nix.conf:/etc/xdg/nix/nix.conf\nStore directory: /nix/store\nState directory: /nix/var/nix\nData directory: /nix/store/ylwh78ikfn6w4vz1hw1qj0bdj414swqx-nix-2.19.3/share\n" m@x default %
FYI, to unblock myself, I backed up the directory devbox global path and re-installed my global Devbox packages again.
devbox global path
@mikeland73 any thoughts on what may have caused this?
What happened?
When I run
devbox global push <git-repo>
, I get the following error message:The symlink itself exists:
But the location in the Nix store doesn't exist:
Steps to reproduce
devbox global push <git-repo>
Command
global
devbox.json
Devbox version
0.12.0
Nix version
nix (Nix) 2.19.3
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
m@x default % DEVBOX_DEBUG=1 devbox global push https://github.com/mootoday/devbox-global time=2024-07-12T08:22:41.700-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:41.700-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:41.701-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:41.701-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:41.716-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path=/Users/m/.local/share/devbox/global/default Info: Pushing global config to https://github.com/mootoday/devbox-global Cloning into '/var/folders/81/8dsh7b6x3qj5g852dvxs8k3r0000gn/T/devbox4127416805'... warning: You appear to have cloned an empty repository. cp: /Users/m/.local/share/devbox/global/default/profile: No such file or directory Error: exit status 1
time=2024-07-12T08:22:50.841-07:00 level=ERROR source=go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:68 msg="command error" stderr="" execid=f7f07214f0e647f28c3f2b9ab6e27998 stack="exit status 1\ngo.jetpack.io/devbox/internal/fileutil.CopyAll\n\tgo.jetpack.io/devbox/internal/fileutil/dir.go:24\ngo.jetpack.io/devbox/internal/pullbox/git.Push\n\tgo.jetpack.io/devbox/internal/pullbox/git/push.go:31\ngo.jetpack.io/devbox/internal/pullbox.(pullbox).Push\n\tgo.jetpack.io/devbox/internal/pullbox/pullbox.go:124\ngo.jetpack.io/devbox/internal/devbox.(Devbox).Push\n\tgo.jetpack.io/devbox/internal/devbox/pushpull.go:23\ngo.jetpack.io/devbox/internal/boxcli.pushCmdFunc\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:58\ngo.jetpack.io/devbox/internal/boxcli.pushCmd.func1\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:29\ngithub.com/spf13/cobra.(Command).execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(Command).Execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1039\ngo.jetpack.io/devbox/internal/boxcli/midcobra.(midcobraExecutable).Execute\n\tgo.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:61\ngo.jetpack.io/devbox/internal/boxcli.Execute\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:115\ngo.jetpack.io/devbox/internal/boxcli.Main\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:138\nmain.main\n\t./main.go:11\nruntime.main\n\truntime/proc.go:271\nruntime.goexit\n\truntime/asm_arm64.s:1222" time=2024-07-12T08:22:50.841-07:00 level=ERROR source=go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=f7f07214f0e647f28c3f2b9ab6e27998 stack="exit status 1\ngo.jetpack.io/devbox/internal/fileutil.CopyAll\n\tgo.jetpack.io/devbox/internal/fileutil/dir.go:24\ngo.jetpack.io/devbox/internal/pullbox/git.Push\n\tgo.jetpack.io/devbox/internal/pullbox/git/push.go:31\ngo.jetpack.io/devbox/internal/pullbox.(pullbox).Push\n\tgo.jetpack.io/devbox/internal/pullbox/pullbox.go:124\ngo.jetpack.io/devbox/internal/devbox.(Devbox).Push\n\tgo.jetpack.io/devbox/internal/devbox/pushpull.go:23\ngo.jetpack.io/devbox/internal/boxcli.pushCmdFunc\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:58\ngo.jetpack.io/devbox/internal/boxcli.pushCmd.func1\n\tgo.jetpack.io/devbox/internal/boxcli/push.go:29\ngithub.com/spf13/cobra.(Command).execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:983\ngithub.com/spf13/cobra.(Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(Command).Execute\n\tgithub.com/spf13/cobra@v1.8.0/command.go:1039\ngo.jetpack.io/devbox/internal/boxcli/midcobra.(midcobraExecutable).Execute\n\tgo.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:61\ngo.jetpack.io/devbox/internal/boxcli.Execute\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:115\ngo.jetpack.io/devbox/internal/boxcli.Main\n\tgo.jetpack.io/devbox/internal/boxcli/root.go:138\nmain.main\n\t./main.go:11\nruntime.main\n\truntime/proc.go:271\nruntime.goexit\n\truntime/asm_arm64.s:1222" time=2024-07-12T08:22:50.841-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path="" time=2024-07-12T08:22:50.841-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/Users/m/.local/share/devbox/global/default time=2024-07-12T08:22:50.889-07:00 level=DEBUG source=go.jetpack.io/devbox/internal/nix/nix.go:337 msg="nix --version --debug output" out="nix (Nix) 2.19.3\nSystem type: aarch64-darwin\nAdditional system types: x86_64-darwin\nFeatures: gc, signed-caches\nSystem configuration file: /etc/nix/nix.conf\nUser configuration files: /Users/m/.config/nix/nix.conf:/etc/xdg/nix/nix.conf\nStore directory: /nix/store\nState directory: /nix/var/nix\nData directory: /nix/store/ylwh78ikfn6w4vz1hw1qj0bdj414swqx-nix-2.19.3/share\n" m@x default %