From 2bfa056b7212ee97088287b080464888d4c72e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6ger?= Date: Mon, 29 Jan 2024 13:11:07 +0000 Subject: [PATCH] Extend golang docs: additional dependencies and tooling semantics --- sections/new-hooks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sections/new-hooks.md b/sections/new-hooks.md index 631d260f..4fc886a5 100644 --- a/sections/new-hooks.md +++ b/sections/new-hooks.md @@ -314,6 +314,9 @@ The hook repository must contain go source code. It will be installed via and the [`entry`](#hooks-entry) should match an executable which will get installed into the `GOPATH`'s `bin` directory. +This language supports `additional_dependencies` and will pass any of the values directly to `go +install`. It can be used as a `repo: local` hook. + _changed in 2.17.0_: previously `go get ./...` was used _new in 3.0.0_: pre-commit will bootstrap `go` if it is not present. `language: golang`