Repository navigation
feat!: native installer and rename to selfupdate-go - #9
Closed
bfirestone wants to merge 14 commits into
Closed
bfirestone wants to merge 14 commits into
bfirestone wants to merge 14 commits into
Conversation
Installer.Prepare downloads and verifies before PreInstall runs, so a consumer that stops a server in the hook keeps it up through the download. Release now carries Assets for the native installer that follows.
Matches the Rust port at SentioLabs/selfupdate-rs. Consumers change their import path. The GitHub redirect keeps the old clone URL working.
OpenFile honours the process umask, so a user with umask 077 got an owner-only binary. Chmod after create pins the mode the caller asked for.
macOS puts t.TempDir under /var, a symlink to /private/var, and the installer prints the resolved path.
Contributor
Author
|
Superseded by a git-spice managed PR for the same branch. |
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.
self updateused to shell out tocurl | bash install.sh.ArchiveInstallernow downloads the goreleaser tarball for the running platform, verifies it againstchecksums.txt, extracts the binary, and renames it over the running executable. It refuses package-managed paths and unwritable directories before any network call.ScriptInstallerstays for consumers that haven't migrated.Installeris two-phase.Preparedownloads and verifies, thenPreInstallruns, thenCommitswaps the binary, then the newPostInstallruns. A CLI that stops a daemon in the hook keeps it up through the download.The module path is now
github.com/sentiolabs/selfupdate-go, matching the Rust port. The twofeat!:commits bump release-please to 0.2.0.Verify with
go test -count=1 ./...andgolangci-lint run ./.... The README has a migration section for 0.1 callers.