Skip to content

Commit 3f8c134

Browse files
committed
docs: add notes about tool command/directive
1 parent 0b33021 commit 3f8c134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/docs/welcome/install.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion
134134

135135
### Install from Sources
136136

137-
Such `go install`/`go get` or "tools pattern" installations aren't guaranteed to work.
137+
Such `go install`/`go get`, "tools pattern", and `tool` command/directives installations aren't guaranteed to work.
138138

139139
We recommend using binary installation.
140140

141141
Those installations aren't recommended because of the following points:
142142

143143
1. Those installations are compiling golangci-lint locally, the Go version used to build will depend on your local Go version.
144144
2. Some users use `-u` flag for `go get`, which upgrades our dependencies. Resulting binary was not tested and is not guaranteed to work.
145-
3. When using "tools pattern", the dependencies of a tool can modify the dependencies of another. Resulting binary was not tested and is not guaranteed to work.
145+
3. When using "tools pattern" or and `tool` command/directives, the dependencies of a tool can modify the dependencies of another or your project. Resulting binary was not tested and is not guaranteed to work.
146146
4. We've encountered issues with Go modules hashes due to unexpected recreation of dependency tags.
147147
5. `go.mod` replacement directives don't apply transitively. It means a user will be using patched version of `golangci-lint` if we use such replacements.
148148
6. It allows installation from main branch which can't be considered stable.

0 commit comments

Comments
 (0)