Open jameshalsall opened 3 years ago
As discussed with @dcole-inviqa directly, we should have workspace do something like the following
workspace.yml
then do as normal; otherwiseworkspace.yml
, would you like to download the correct version now?"In step 4 and 6, harnesses will be able to cleanly shut down any running environment, and bring it back up as safe as possible without completely destroying it, which would lead to poor DX.
Also, it might be worth making this feature opt-in per harness, as without those event hooks it might cause problems for developers.
Currently, if you pull some changes from your repository that include a harness version bump, you have to manually remove the
.my127ws
harness directory and redownload it withws harness download
(or runws install
).It would be nice to have workspace check some kind of metafile in the
.my127ws
directory that contains harness info, like the version number, and compare it to the current version defined inworkspace.yml
. If it differs, then it should automatically download the new version of the harness.Workspace could generate this metafile in the
.my127ws
directory after a harness download.