You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading cgo, the go tool allows the path to the pkg-config tool to be overridden with the PKG_CONFIG environmental variable. The x/tools loader, however, hardcodes the name pkg-config for a $PATH search. It should instead only fallback to such a search after looking at the PKG_CONFIG environmental variable.
The text was updated successfully, but these errors were encountered:
The go/packages fallback code was just deleted as of golang.org/cl/166537.
As @josharian noted above, go/loader is deprecated. We don't plan on making changes to go/loader except to fix serious bugs.
andybons
changed the title
x/tools/go/loader should respect PKG_CONFIG environmental variable
x/tools/go/loader: should respect PKG_CONFIG environmental variable
May 14, 2019
When loading cgo, the
go
tool allows the path to thepkg-config
tool to be overridden with thePKG_CONFIG
environmental variable. Thex/tools
loader, however, hardcodes the namepkg-config
for a$PATH
search. It should instead only fallback to such a search after looking at thePKG_CONFIG
environmental variable.The text was updated successfully, but these errors were encountered: