1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-25 22:22:17 +02:00

Replace the deprecated load mode with more specific flags are recommended in the packages docs (#400)

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar
2019-10-02 14:05:14 +02:00
committed by GitHub
parent ad375d3b8f
commit e680875ea1
2 changed files with 12 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ func (p *TestPackage) Build() error {
}
conf := &packages.Config{
Mode: packages.LoadSyntax,
Mode: gosec.LoadMode,
Tests: false,
}
pkgs, err := packages.Load(conf, packageFiles...)