diff options
author | Michael Pratt <mpratt@google.com> | 2020-07-23 08:13:00 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 08:14:26 -0700 |
commit | 14839e027f5310346718aea385cea5e45f017170 (patch) | |
tree | a49a3d00489d8cfdcd38710131c2dd8a679da88d /tools/nogo/nogo.go | |
parent | c9399797d8defbdb41f483d0bdbeb96c5777c82f (diff) |
Internal change
PiperOrigin-RevId: 322788791
Diffstat (limited to 'tools/nogo/nogo.go')
-rw-r--r-- | tools/nogo/nogo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/nogo/nogo.go b/tools/nogo/nogo.go index 5ee586c3e..ea1e97076 100644 --- a/tools/nogo/nogo.go +++ b/tools/nogo/nogo.go @@ -55,6 +55,7 @@ type pkgConfig struct { FactMap map[string]string FactOutput string Objdump string + StdZip string } // loadFacts finds and loads facts per FactMap. @@ -111,7 +112,7 @@ func (i *importer) Import(path string) (*types.Package, error) { if !ok { // Not found in the import path. Attempt to find the package // via the standard library. - rc, err = findStdPkg(path, i.GOOS, i.GOARCH) + rc, err = i.findStdPkg(path) } else { // Open the file. rc, err = os.Open(realPath) |