GithubHelp home page GithubHelp logo

rebuild failed about devpod HOT 4 CLOSED

jlovas avatar jlovas commented on June 18, 2024
rebuild failed

from devpod.

Comments (4)

89luca89 avatar 89luca89 commented on June 18, 2024

Hi @jlovas can you try the release v0.5.5-alpha1? it includes a potential fix for this
thanks!

from devpod.

jlovas avatar jlovas commented on June 18, 2024

Hi @89luca89
The rebuild worked fine with v0.5.5-a1.

But it also deleted my cloned local git repo (/Users/jlovas/.devpod/agent/contexts/default/workspaces/devpod-055a1-test), not just the container overlays. This also lost my pending changes there, which the rebuild warning text did not inform me about. (Just testing, no values lost.)

from devpod.

89luca89 avatar 89luca89 commented on June 18, 2024

@jlovas thanks for testing, sorry to hear this!

we will look further into this
cc @pascalbreuninger

EDIT: expanding the explanation, there is no "container overlay", the directory in ~/.devpod/agent/contetx/default/workspaces/ is mounted inside the container, so that's why there is no overlay or middle ground between wiping/rebuild and keeping it as it is
We might want to either inform better the user with a warning before rebuilding, or we might want to find a way to commit stuff before wiping

from devpod.

jlovas avatar jlovas commented on June 18, 2024

I think there should be 2 different functions:

  • reset, i.e. rebuild from scratch: downloads everything and rebuilds it again, except volumes(?) (this is how it works now)
  • rebuild from local repo state: keeps the local repo and rebuilds the container based on the devcontainer.json it contains.

from devpod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.