mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-22 19:21:52 +03:00
Instead of requiring the user to install the right version of the tool in their .bin folder, create a shim that automatically runs the right version of the tool. This has several benefits: - it works out of the box with no setup required (the tool will be automatically downloaded and compiled the first time it is used) - no work needed for developers when we bump the golangci-lint version - it works in working copies that are used in different environments (e.g. locally on a Mac, or inside a dev container) Co-authored-by: kyu08 <49891479+kyu08@users.noreply.github.com>
9 lines
183 B
Bash
Executable File
9 lines
183 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Must be kept in sync with the version in .github/workflows/ci.yml
|
|
version="v2.2.1"
|
|
|
|
go run "github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$version" "$@"
|