prog.CreateTestMainPackage undefined (type *ssa.Program has no field or method CreateTestMainPackage
Closed this issue · 3 comments
Hello,
while building the gotools (originally as part of liteidex, but reproducable also standalone) I get the following error:
mpeterma@x230 ~> go get -u github.com/visualfc/gotools
# github.com/visualfc/gotools/oracle/oracle
go/pkg/mod/github.com/visualfc/gotools@v1.3.6/oracle/oracle/oracle.go:192:16: prog.CreateTestMainPackage undefined (type *ssa.Program has no field or method CreateTestMainPackage)
My host OS is NetBSD so there might be a environment issue on my side(?). Anyway, I did some research an found some note on deprecation of the affected method:
Is this something which could be fixed in gotools, or is the issue not closely related to it?
Kind regards
Matthias
Hello,
while building the gotools (originally as part of liteidex, but reproducable also standalone) I get the following error:
mpeterma@x230 ~> go get -u github.com/visualfc/gotools # github.com/visualfc/gotools/oracle/oracle go/pkg/mod/github.com/visualfc/gotools@v1.3.6/oracle/oracle/oracle.go:192:16: prog.CreateTestMainPackage undefined (type *ssa.Program has no field or method CreateTestMainPackage)
My host OS is NetBSD so there might be a environment issue on my side(?). Anyway, I did some research an found some note on deprecation of the affected method:
Is this something which could be fixed in gotools, or is the issue not closely related to it?
Kind regards Matthias
golang.org/x/tools v0.18 remove prog.CreateTestMainPackage
Thank you so much - this fixed it for me.