grafana/.citools
Matheus Macabu f07198bbc3
[release-11.6.7] Go: Update to 1.25.3 (#112365)
Go: Update to 1.25.3
2025-10-14 12:21:57 +02:00
..
src [release-11.6.7] Go: Update to 1.25.3 (#112365) 2025-10-14 12:21:57 +02:00
README.md [release-11.6.7] Go: Update to 1.25.2 + golangci-lint v2.5.0 + golang.org/x/net v0.45.0 (#112162) 2025-10-08 14:02:45 +02:00
Variables.mk [release-11.6.7] Go: Update to 1.25.2 + golangci-lint v2.5.0 + golang.org/x/net v0.45.0 (#112162) 2025-10-08 14:02:45 +02:00
generate.sh [release-11.6.7] Go: Update to 1.25.2 + golangci-lint v2.5.0 + golang.org/x/net v0.45.0 (#112162) 2025-10-08 14:02:45 +02:00
install.sh [release-11.6.7] Go: Update to 1.25.2 + golangci-lint v2.5.0 + golang.org/x/net v0.45.0 (#112162) 2025-10-08 14:02:45 +02:00

README.md

API

Adding and Upgrading Tools

To add a new tool, execute the installation script:

install.sh <tool>

Example

The following command will add lefthook to the tracked tools if it is not already installed, or update its version:

install.sh github.com/evilmartians/lefthook@v1.11.10

Behind the scenes, the script performs a few simple steps:

  • Creates a Go module under the .citools/src/<toolname> directory to track the tool version and its dependencies.
  • Creates a reference to the tool binary in the .citools/Variables.mk file.

Using Tools in the Makefile

Our Makefile imports .citools/Variables.mk, so you can call a tool binary using standard Make syntax.

Example

run:
    $(bra) run

Using Tracked Tools Without the Makefile

If you want to use a tool outside of the Makefile, you can locate the tool binary by executing the following command:

GOWORK=off go tool -n -modfile=<path_to_modfile> <toolname>