Missing and overwritten scaffolding files when scaffolding is already in VCS #40
Labels
bug
Something isn't working
passed-dev-qa
Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Describe the bug
After project scaffolding is saved to the repo during the first workspace image build, subsequent rebuilds of the workspace image which may contain new scaffolding such as phpmyadmin, do not copy over. Also project scaffolding is created and copied over blindly even if it already exists which results in data loss.
Screenshots
Steps to reproduce
For the no vendor folder problem
INVALIDATE_CACHE
in.gitpod.Dockerfile
The
vendor
folder is no longer present and the project will not run.For the existing front end scaffolding gets overwritten problem
starter.ini
)starter.ini
to installreact
resources/js/app.js
(this content of the comment arbitrary)The comment in `resources/js/app.js will be gone.
Expected behavior
Any new files created in the project scaffolding phase via
.gitpod.Dockerfile
such as thevendor
folder orpublic/phpmyadmin
should be copied over only if they do not already exist. Furthermore any scaffolding created during theinit
phase such as scaffolding created directly in the project folder (i.ereact
) should only be copied over if that scaffolding does not already exist in version control.Additional information
Switch from
mv
torsync
so that all new files and directories will be copied over from~/test-app
composer show | grep laravel/ui >/dev/null && __ui=1 || __ui=0
react
already exists. Use this for detecting existing frontend scaffolding already in version control.The text was updated successfully, but these errors were encountered: