$ go run ./sample.go
E1021 13:11:18.826221 41979 sample.go:19] hello world
Got
$ yaegi ./sample.go
run: ./sample.go:14:2: import "github.com/golang/glog" error: /Users/jimeh/.go/src/playground/at-2022-10-21-124457/vendor/github.com/golang/glog/glog.go:632:15: cannot use type *glog.buffer as type io.Writer
Yaegi Version
v0.14.2 and e003140c6e76617b78ee3a5e783f05d3373d091c
Additional Notes
Setup involved a this go.mod:
module playground/at-2022-10-21-124457
go 1.19
require github.com/golang/glog v1.0.0
Followed by tidying and vendoring the dependencies:
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.14.2
and e003140c6e76617b78ee3a5e783f05d3373d091cAdditional Notes
Setup involved a this
go.mod
:Followed by tidying and vendoring the dependencies:
Resulting in the following directory structure: