devpod icon indicating copy to clipboard operation
devpod copied to clipboard

Rebuild does not run dotfiles

Open haukex opened this issue 1 year ago • 8 comments

What happened? / How can we reproduce the bug? (as minimally and precisely as possible)

  1. I configured my dotfiles repo in the DevPod settings.
  2. I created a Workspace (in this case from https://github.com/haukex/igbpyutils on the local Docker provider).
  3. The Workspace built, with dotfiles being executed, and it opened in VSCode.
  4. I closed VSCode and selected "Rebuild" in the DevPod UI.
  5. The build log includes "debug No dotfiles repo specified, skipping", and when VSCode starts back up, it is clear (from the appearance of the terminal) the dotfiles were not executed.
  6. Close VSCode, and in the DevPod UI, select "Open".
  7. The build log shows the dotfiles being run, and when VSCode opens, it is clear the dotfiles were run this time.

The above steps reliably reproduce the issue on my system.

What did you expect to happen instead?

I would expect the dotfiles to be executed on a Rebuild.

Local Environment:

  • DevPod Version: v0.5.20
  • Operating System: Windows 10 Pro 22H2
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local provider: Docker / WSL2

haukex avatar Sep 24 '24 14:09 haukex

Hey @haukex, it's been a while since you've opened this issue but I agree, we need to rerun the dotfiles setup when recreating workspaces

pascalbreuninger avatar Nov 25 '24 07:11 pascalbreuninger

Was looking for a workaround and I found that I could manually invoke the install-dotfiles setup from within the rebuilt container, putting the command here in case it helps others.

/usr/local/bin/devpod agent workspace install-dotfiles --repository [dotfiles_repo]

paulannetts avatar Nov 29 '24 12:11 paulannetts

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jan 29 '25 01:01 github-actions[bot]

Commenting so the bot doesn't close this

haukex avatar Jan 29 '25 07:01 haukex

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Mar 31 '25 02:03 github-actions[bot]

No, bad bot, good things take time 😉

haukex avatar Mar 31 '25 05:03 haukex

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jun 01 '25 02:06 github-actions[bot]

Bad bot

haukex avatar Jun 05 '25 11:06 haukex