mirror of
https://github.com/grafana/grafana.git
synced 2026-07-03 03:37:53 +00:00
deps(go): bump github.com/gohugoio/hugo in /.citools/src/air Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo) from 0.162.0 to 0.163.3. - [Release notes](https://github.com/gohugoio/hugo/releases) - [Commits](https://github.com/gohugoio/hugo/compare/v0.162.0...v0.163.3) --- updated-dependencies: - dependency-name: github.com/gohugoio/hugo dependency-version: 0.163.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| generate.sh | ||
| install.sh | ||
| README.md | ||
| Variables.mk | ||
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.mkfile.
Using Tools in the Makefile
Our Makefile imports .citools/Variables.mk, so you can call a tool binary using standard Make syntax.
Example
run:
$(cue) 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>