Skip to content

Commit 1e1fc91

Browse files
committed
Update the README with some details related to Go version used by the rules
Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 9a03665 commit 1e1fc91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ You can also configure the hard-coded credentials rule `G101` with additional pa
230230
}
231231
```
232232

233+
#### Go version
234+
235+
Some rules require a specific Go version which is retrieved from the Go module file present in the project. If this version cannot be found, it will fallback to Go runtime version.
236+
237+
The Go module version is parsed using the `go list` command which in some cases might lead to performance degradation. In this situation, the go module version can be easily disabled by setting the environment variable `GOSECNOMODVERSION=on`.
238+
233239
### Dependencies
234240

235241
gosec will fetch automatically the dependencies of the code which is being analyzed when go module is turned on (e.g.`GO111MODULE=on`). If this is not the case,

0 commit comments

Comments
 (0)