Skip to content

Commit

Permalink
Merge pull request #435 from emmanuel099/master
Browse files Browse the repository at this point in the history
Load packages with dependencies for Go 1.18
  • Loading branch information
LandonTClipp committed Mar 30, 2022
2 parents adda07f + 4e181be commit 232f954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parse.go
Expand Up @@ -37,7 +37,7 @@ type Parser struct {

func NewParser(buildTags []string) *Parser {
var conf packages.Config
conf.Mode = packages.LoadSyntax
conf.Mode = packages.LoadSyntax | packages.NeedDeps
if len(buildTags) > 0 {
conf.BuildFlags = []string{"-tags", strings.Join(buildTags, ",")}
}
Expand Down

0 comments on commit 232f954

Please sign in to comment.