On Tuesday, May 10, 2022 at 1:46:35 AM UTC+8 Ian Lance Taylor wrote:

> On Mon, May 9, 2022 at 10:18 AM tapi...@gmail.com <tapi...@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 
>

 "go build -gcflags=-lang=go1.15" doesn't work too.
OK, I will try to install 1.15 alongside.

-- 
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/c06cd282-c306-44c3-91e2-7d820ff78f2an%40googlegroups.com.

Reply via email to