mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-18 03:49:50 -06:00
Checking for an update with `u` has several problems: - It offers to download and install the new version for any build that has a version, including builds from Homebrew or a Linux distribution. Overwriting those makes the package manager report the wrong version. - It only logs its errors, so the user never learns why nothing happens. This includes "You already have the latest version". For a build from a git checkout, the version is a commit hash; comparing it with the release version fails, and the user sees nothing at all. - Installing always fails on Windows. Rewrite it on top of the functions from the previous commits. Show the result of the check in all cases. If there's an update, show a menu that depends on how lazygit was installed. We only offer "Install now" for our release archives, and only if we can write to the folder of the executable. For package managers that we know, we show the command that updates lazygit. Otherwise we tell the user where to get the new version. Disable `u` for dev builds and say why. Installing replaces the executable with a rename, so quitting during an update can no longer leave a broken binary behind. Instead of asking for confirmation, wait for the rename to finish before exiting. Remove the check at startup for now. It never ran, because it checked for the build source "buildBinary" while .goreleaser.yml sets "binaryRelease". A later commit adds a new one. Use os.Executable instead of the osext package; os.Executable didn't exist yet when this code was written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
79 lines
2.8 KiB
AMPL
79 lines
2.8 KiB
AMPL
module github.com/jesseduffield/lazygit
|
|
|
|
go 1.26.0
|
|
|
|
// This is necessary to ignore test files when executing gofumpt.
|
|
ignore ./test
|
|
|
|
// Likewise for worktrees that are nested in the main tree.
|
|
ignore ./.worktrees
|
|
|
|
require (
|
|
dario.cat/mergo v1.0.2
|
|
github.com/adrg/xdg v0.5.3
|
|
github.com/atotto/clipboard v0.1.4
|
|
github.com/aybabtme/humanlog v0.4.1
|
|
github.com/cli/go-gh/v2 v2.16.2
|
|
github.com/cloudfoundry/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21
|
|
github.com/creack/pty v1.1.24
|
|
github.com/gdamore/tcell/v3 v3.6.0
|
|
github.com/go-errors/errors v1.5.1
|
|
github.com/gookit/color v1.6.1
|
|
github.com/integrii/flaggy v1.8.0
|
|
github.com/jesseduffield/generics v0.0.0-20250517122708-b0b4a53a6f5c
|
|
github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5
|
|
github.com/karimkhaleel/jsonschema v0.0.0-20231001195015-d933f0d94ea3
|
|
github.com/kyokomi/emoji/v2 v2.2.14
|
|
github.com/lucasb-eyer/go-colorful v1.4.1
|
|
github.com/mgutz/str v1.2.0
|
|
github.com/mitchellh/go-ps v1.0.0
|
|
github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe
|
|
github.com/rivo/uniseg v0.4.7
|
|
github.com/sahilm/fuzzy v0.1.3
|
|
github.com/samber/lo v1.53.0
|
|
github.com/sanity-io/litter v1.5.8
|
|
github.com/sasha-s/go-deadlock v0.3.9
|
|
github.com/sirupsen/logrus v1.10.2
|
|
github.com/spf13/afero v1.15.0
|
|
github.com/spkg/bom v1.0.1
|
|
github.com/stefanhaller/git-todo-parser v0.0.7-0.20250905083220-c50528f08304
|
|
github.com/stretchr/testify v1.12.1
|
|
github.com/xo/terminfo v1.2.0
|
|
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
|
|
golang.org/x/mod v0.41.0
|
|
golang.org/x/sync v0.24.0
|
|
golang.org/x/sys v0.49.0
|
|
gopkg.in/ozeidan/fuzzy-patricia.v3 v3.0.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/bahlo/generic-list-go v0.2.0 // indirect
|
|
github.com/buger/jsonparser v1.1.2 // indirect
|
|
github.com/cli/safeexec v1.0.1 // indirect
|
|
github.com/clipperhouse/displaywidth v0.11.0 // indirect
|
|
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
|
|
github.com/fatih/color v1.9.0 // indirect
|
|
github.com/gdamore/encoding v1.0.1 // indirect
|
|
github.com/go-logfmt/logfmt v0.5.0 // indirect
|
|
github.com/hpcloud/tail v1.0.0 // indirect
|
|
github.com/invopop/jsonschema v0.10.0 // indirect
|
|
github.com/kr/logfmt v0.0.0-20210122060352-19f9bcb100e6 // indirect
|
|
github.com/mailru/easyjson v0.7.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/onsi/ginkgo v1.10.3 // indirect
|
|
github.com/onsi/gomega v1.34.1 // indirect
|
|
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
golang.org/x/term v0.46.0 // indirect
|
|
golang.org/x/text v0.42.0 // indirect
|
|
golang.org/x/tools v0.49.0 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
|
gopkg.in/fsnotify.v1 v1.4.7 // indirect
|
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
|
mvdan.cc/gofumpt v0.11.0 // indirect
|
|
)
|
|
|
|
tool mvdan.cc/gofumpt
|