loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.75k stars 328 forks source link

Rebuild option should first update from repository #1022

Closed martinbiard closed 5 months ago

martinbiard commented 5 months ago

It's been a few weeks since I tried Jetbrains' Gateway and if I recall correctly, whenever I had a bug in my devcontainer and pushed an update to my remote git repository, running rebuild in Gateway would first fetch the update before running the rebuild. I thought this was also convenient if my team ends up adopting this because whenever I would push an update to the devcontainer, I could just tell our devs to run "Rebuild". However, with devpod, running rebuild does not fetch updates, and I am left to delete the pod and re-add again to make sure I have the latest changes from remote.

In my case, I had an error during devcontainer boot, the onCreateCommand failed. I think in such case, fetching updates before rebuild is absolutely necessary since otherwise you cannot do anything more with that pod except delete it and start over. At the very least there should be an option to update from remote to bring back the pod into a useable state.

Screenshot 2024-04-24 143328

martinbiard commented 5 months ago

Actually, nevermind above, I just found out that Reset does exactly what I was looking for, I just had assumed it was like a reboot of the container and never actually tested it before.

pascalbreuninger commented 5 months ago

@martinbiard Was about to say that, will close this issue 👍 Maybe we can add a little info button next to these actions and explain what they're doing