Skip to content

Commit

Permalink
Remove packages.NeedDeps
Browse files Browse the repository at this point in the history
This was introduced #435 but it wasn't the correct solution.
  • Loading branch information
LandonTClipp committed Apr 5, 2022
1 parent 8384e25 commit ba1f213
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 | packages.NeedDeps
conf.Mode = packages.LoadSyntax
if len(buildTags) > 0 {
conf.BuildFlags = []string{"-tags", strings.Join(buildTags, ",")}
}
Expand Down

0 comments on commit ba1f213

Please sign in to comment.