[go: nahoru, domu]

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

devbox global push – No such file or directory #2190

Open
mikenikles opened this issue Jul 12, 2024 · 2 comments
Open

devbox global push – No such file or directory #2190

mikenikles opened this issue Jul 12, 2024 · 2 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@mikenikles
Copy link
Contributor

What happened?

When I run devbox global push <git-repo>, I get the following error message:

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

Steps to reproduce

  1. Run devbox global push <git-repo>

Command

global

devbox.json

`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"
  }
}

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 %

@mikenikles mikenikles added bug Something isn't working triage Issue needs triage labels Jul 12, 2024
@mikenikles
Copy link
Contributor Author

FYI, to unblock myself, I backed up the directory devbox global path and re-installed my global Devbox packages again.

@savil
Copy link
Collaborator
savil commented Jul 22, 2024

@mikeland73 any thoughts on what may have caused this?

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