Repository navigation
install.sh: place each release with basert self install, under versions/ - #83
Merged
Merged
Conversation
From 0.4.3 the launcher places a release itself: install.sh unpacks the bundle beside the install, and the bundle's basert (or the installed one, for an older release) moves it to versions/<v> and turns the links in the install directory to it. A copy an earlier run placed flat is kept as the version to go back to; a release whose launcher cannot place it, with no installed one that can, is unpacked flat as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From 0.4.3, the
basertlauncher places a release itself withbasert self install --from <dir> --root <dir>. That is the layoutbasert self updatekeeps up to date:~/.basert/versions/<v>/versions/currentnaming the one in use~/.basertholding a link per release file through it, so the PATH line stays the same.install.shnow unpacks the bundle into~/.basert/versions/.staging/and hands it to whichever launcher can place it:basert(0.4.3 and later).basert, when a pinned older release (BASERT_VERSION) goes over a 0.4.3+ install.~/.basertexactly as before, leaving the same files.A copy an earlier run placed flat is kept as
versions/<old>, the versionbasert self use <old>goes back to. The "already on " check is unchanged:.releaseis still written in~/.basert, and~/.basert/basertresolves through its link. The closing message mentionsbasert self updatewhen the release can do it.Safe to merge before 0.4.3 is published: a release without
self installtakes path 3.Tested on macOS/arm64 with a stub
curlserving local bundles:self installversions/)