Anything written to ~/ does not persist. ~/.gitconfig, ~/.rake, etc.. #30
Labels
bug
Something isn't working
gitpod-config
Related to gitpod configuration (bash scripts etc...)
passed-dev-qa
Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Describe the bug
When a workspace is stopped and restarted.
~/.rake
is blasted away and so is anything written to~/.gitconfig
. In fact any files that are written in the init phase that are not in/workspace
(or deeper) will not be there on subsequent startups of the workspace.A seperate but related issue is that also the initialization log
/var/log/workspace-init.log
turns into a zero byte file on subsequent starts of a workspace because the docker image writes that file empty and expects the init task to populate it, which it does.... once...../var/log/workspace-image.log
is fine because the docker image writes to it./var/log/xdebug.log
is fine to be reset on every startup aswell unless we wanted to log to persist between startups of the workspace.UPDATE: this bug has been addressed in Feature #31
td;LR Anything that is written to
~/
from anywhere will not persist.Screenshots
Steps to reproduce
git a
and the output is:ls ~/.rake
and the output is:Expected behavior for running
git a
Output for (at a minimum) should be:
Expected behavior for running
ls ~/.rake
Output (at a minimum) should be:
changelog.rake
Additional information
Currently and unfortunately Gitpod does not persist anything in
~/
(/home/gitpod).The hack here could be to take out anything that parses, copies or write new files to
~/
and move that into abefore
task in.gitpod.yml
(UPDATE: this worked for the git aliases and the rake tasks).before
tasks run before theinit
command but unlike theinit
commandbefore
tasks run everytime the workspace is started so take that into consideration.A system for persisting files needs to be devised.
The text was updated successfully, but these errors were encountered: