update

package
v13.2.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package update contains code for Please auto-updating itself. At startup, Please can check a version set in the config file. If that doesn't match the version of the current binary, it will download the appropriate version from the website and swap to using that instead.

This feature is fairly directly cribbed from Buck since we found it very useful, albeit implemented differently so it plays nicer with multiple simultaneous builds on the same machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndUpdate

func CheckAndUpdate(config *core.Configuration, updatesEnabled, updateCommand, forceUpdate, verify bool)

CheckAndUpdate checks whether we should update Please and does so if needed. If it requires an update it will never return, it will either die on failure or on success will exec the new Please. Conversely, if an update isn't required it will return. It may adjust the version in the configuration. updatesEnabled indicates whether updates are enabled (i.e. not run with --noupdate) updateCommand indicates whether an update is specifically requested (due to e.g. `plz update`) forceUpdate indicates whether the user passed --force on the command line, in which case we will always update even if the version exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL