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 build the Plugin and then run go run main.go it works.
However, when i copy foo into foo-plugin/vendor/foo i get an error.
What did you expect to see?
$ go run main.go
success
What did you see instead?
$ go run main.go
panic: interface conversion: plugin.Symbol is *types.Custom, not *types.Custom (types from different scopes)
goroutine 1 [running]:
main.main()
/root/go/src/foo/main.go:16 +0x27e
exit status 2
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have the following structure:
I have an interface in types.go
types/types.go
I use this in the Plugin
plugin.go
And i load and use the Plugin in main.go
main.go
When i build the Plugin and then run
go run main.go
it works.However, when i copy
foo
intofoo-plugin/vendor/foo
i get an error.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: