New Codespace based on prebuild doesn't pull in new commits #58172
Replies: 8 comments 1 reply
-
Hello @bdotlim ! This only depends on the configuration of your prebuild, you could make the prebuild to run and update for every push you do to the repository and that way all the changes will be available as soon as the action runs. Here you can find more information about this: https://docs.github.com/en/codespaces/prebuilding-your-codespaces/about-github-codespaces-prebuilds Hope this helps, |
Beta Was this translation helpful? Give feedback.
-
We've run into this problem too, and were pretty baffled by it. We had a prebuild with the trigger "On configuration change", last built on June 8th for our If I make a fresh branch off of If, however, I launch a codespace on
This is, at best, a workaround. It comes with the significant downside of doing a load of pointless work to rebuild the image on every push to |
Beta Was this translation helpful? Give feedback.
-
I also was surprised by this problem. I have a devcontainer prebuild setup to trigger only on configuration changes. However, when we create a codespace from I expected a current copy of the repo to be cloned, even with the prebuilt codespace. Is this a bug or working as intended? I think as a workaround we may be able to have a |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Just ran into this problem, I'm guessing the "git pull" is the solution here? I'm suprised that it doesnt automatically do this so that you dont end up with a old codebase... |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
This seems like a pretty fundamental feature that shouldn't require a workaround. @osortega can you please provide a sufficient answer here? |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm using Codespaces Prebuilds, and I have the trigger set to "On configuration change". As I understand it, the prebuild will only update on changes to the devcontainer.json / the Dockerfile that it points to. This is working as expected.
The issue I'm seeing is when I push changes to the branch (changes that don't trigger a new prebuild) and create a new codespace (see screenshots for how I'm creating it) based on the prebuild. Once the new codespace loads, it doesn't have any of the commits since the prebuild was built. I thought that when you create a new codespace, whether or not it's from a prebuild, the VM will pull in the latest commits for the branch. Am I wrong?
Beta Was this translation helpful? Give feedback.
All reactions