Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/tailscale/cli,clientupdate: extract new clientupdate package #8827

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

awly
Copy link
Contributor

@awly awly commented Aug 9, 2023

Extract the self-update logic from cmd/tailscale/cli into a standalone package that could be used from tailscaled later.
The update setup code was refactored a bit compared to original.
The actual updater.update* methods are largely the same, with some extra validation and calls to log.Print*/fmt.Print* replaced with the pluggable logger.

Updates #6995

@awly awly force-pushed the awly/clientupdate-lib branch 2 times, most recently from 6f5b182 to cd46ec1 Compare August 9, 2023 17:15
clientupdate/clientupdate.go Dismissed Show dismissed Hide dismissed
@awly awly force-pushed the awly/clientupdate-lib branch 2 times, most recently from 703ae77 to 8545907 Compare August 10, 2023 22:15
Copy link
Contributor

@noncombatant noncombatant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM either way; your call on the Track + Version issue.

Version string
// AppStore forces a local app store check, even if the current binary was
// not installed via an app store.
AppStore bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave it for now, but there is a possible future in which I remove it, FYI.

clientupdate/clientupdate.go Outdated Show resolved Hide resolved
Extract the self-update logic from cmd/tailscale/cli into a standalone
package that could be used from tailscaled later.

Updates #6995

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
@awly awly merged commit 215480a into main Aug 11, 2023
36 checks passed
@awly awly deleted the awly/clientupdate-lib branch August 11, 2023 00:01
alexelisenko pushed a commit to Control-D-Inc/tailscale that referenced this pull request Feb 15, 2024
…lscale#8827)

Extract the self-update logic from cmd/tailscale/cli into a standalone
package that could be used from tailscaled later.

Updates tailscale#6995

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Signed-off-by: Alex Paguis <alex@windscribe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants