Coder Social home page Coder Social logo

Comments (5)

carlosms avatar carlosms commented on June 14, 2024 1

Then, I don't know if we should put that "critical" data in user's home instead of in more internal app directory (like /var/srcd or `~\AppData\Local).

Moving things to /var makes sense to me.

what should be the behavior if the users run sourced status with no ~/.srcd?

  • inform the users about no available sandbox? (what can be false in some examples)
  • recommend them running install before running status? (what would also fix prev example)
  • other...

I would forget about the case where the user might be deleting files, it's outside of our control.

To me the reasonable output for status, stop etc. would be something along the lines of
cannot perform this action, source{d} needs to be initialized first with the 'install' sub command

from sourced-ce.

dpordomingo avatar dpordomingo commented on June 14, 2024

Can we assume that if there's no ~/.srcd, there is no running sandbox?
Maybe we can't.

If ~/.srcd is deleted after sourced install, the ui is still working, but prune, stop, status commands no longer work, so you need to install again.

What should be the expected behavior?

could it be a good idea to store the "active" config in a volume?

from sourced-ce.

carlosms avatar carlosms commented on June 14, 2024

Can we assume that if there's no ~/.srcd, there is no running sandbox?
Maybe we can't.

If ~/.srcd is deleted after sourced install, the ui is still working, but prune, stop, status commands no longer work, so you need to install again.

What should be the expected behavior?

If the user deletes files we need, I don't think is reasonable to be able to recover.
A user that feels confident enough to delete this dir should also be able to fix anything with plain docker commands.

could it be a good idea to store the "active" config in a volume?

I don't see much benefit for the extra complexity.

from sourced-ce.

dpordomingo avatar dpordomingo commented on June 14, 2024

Then, I don't know if we should put that "critical" data in user's home instead of in more internal app directory (like /var/srcd or ~\AppData\Local).

Anyhow.
what should be the behavior if the users run sourced status with no ~/.srcd?

  • inform the users about no available sandbox? (what can be false in some examples)
  • recommend them running install before running status? (what would also fix prev example)
  • other...

from sourced-ce.

dpordomingo avatar dpordomingo commented on June 14, 2024

Since running install again will also fix the described problem, lgtm.

from sourced-ce.

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.