On Mon, May 9, 2022 at 10:18 AM tapi...@gmail.com <tapir....@gmail.com> wrote: > > I have a project using go1.16 embedding feature. > The project supports Go toolchain 1.15, by using "//go:build !go1.16" > directive. > > Now I have upgraded the toolchain to v1.18.1, > And I want to debug the non-embedding flow of the project. > Changing the go version in go.mod doesn't help. > > Do I have to install back Go toolchain 1.15?
I don't think that what you want to do is supported. I recommend that you install 1.15 somewhere. That said, you could try "go build -gcflags=-lang=go1.15". Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXdfawwEDVM0Oy12hE3igWG%2B7G0PzuDV02pVjB%2B_m1LYQ%40mail.gmail.com.