Open awesomescot opened 6 months ago
Hi @awesomescot, this issue has slipped my attention. Are you starting your workspace from a local folder or a git repository URL?
@awesomescot does this still happen for you with the latest devpod? I tried using the k8s operator and it worked
Running into the same issue. I'm on the latest version on windows. The docker provider will pickup the changes on a rebuild, but the kubernetes provider will not. It's not seeing changes to the devcontainer.json
.
Further testing is showing that the underlying file changes are there, but it will not pickup any changes to devcontainer.json
. It only uses the version of that file that was there at first creation.
Thanks @Benjamin-Etheredge, I'll take another look and see if I can find why :+1:
What happened?
Using the folder workspace, when I update the Dockerfile it is not reflected in DevPod. "Rebuild" and "Reset" don't seem to get the new code. I have to completely delete the workspace and recreate it in order to get the new code.
What did you expect to happen instead?
I would expect the code to get updated continuously. A rebuild or reset I would especially expect it to rebuild from the code in the local directory and not pull from cache.
How can we reproduce the bug? (as minimally and precisely as possible)
Create a workspace with kubernetes backend(although I think this might happen with others also). Build your image, which failed due to an error in Dockerfile. Change some code in your Dockerfile to fix error. Try to rebuild or reset. From the logs you can tell it's not getting the new Dockerfile code and continues to fail.
My
devcontainer.json
:Local Environment:
DevPod Provider:
Anything else we need to know?