Skip to content

Commit

Permalink
fix the parametes '-tags' no effect,use -tag="-tags xxx" (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
locetyang authored Aug 2, 2021
1 parent 71bdc75 commit dcaa7a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package main
import (
"errors"
"fmt"
"io"
"go/build"
"go/types"
"os"
"strings"
"io"
"log"
"net/http"
"os"
"path/filepath"
"log"
"strings"

"golang.org/x/tools/go/packages"
"golang.org/x/tools/go/pointer"
Expand Down Expand Up @@ -65,6 +66,7 @@ func (a *analysis) DoAnalysis(
Mode: packages.LoadAllSyntax,
Tests: tests,
Dir: dir,
BuildFlags: build.Default.BuildTags,
}

initial, err := packages.Load(cfg, args...)
Expand Down

0 comments on commit dcaa7a7

Please sign in to comment.