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 i fork a gopkg, like github.com/yuin/gopher-lua,
the origin gopkg's base import path is github.com/yuin/gopher-lua.
Some sub package (like gopher-lua/ast) still use github.com/yuin/gopher-lua/ast import path.
I can't build the new fork on new import path(on github.com/chai2010/lua).
I need to use go run fixpath.go -old-path=github.com/yuin/gopher-lua -new-path=github.com/chai2010/lua
to fix the import path.
When use the go generate to invoke the fixpath tool (to current import path),
i hope use $GOPACKAGEPATH instead of the github.com/chai2010/lua.
//go:generate go run cmd/fixpath/fixpath.go -old=... -new=$GOPACKAGEPATH
Go generate sets several variables: $GOARCH/$GOOS/$GOFILE/$GOPACKAGE .
When we fork a gopkg, we need fix the old import path to current import path.
Like this:
Suggest add $GOPACKAGEPATH for import path.
https://github.com/chai2010/lua/blob/master/generate.go#L7
The text was updated successfully, but these errors were encountered: