OT, but why do you want to support the Go 1.15 toolchain?
1.15 and 1.16 are no longer supported upstream, so will not get essential 
security fixes.
Why not just ask your users to upgrade to 1.18.1?

On Tuesday, 10 May 2022 at 01:24:12 UTC+1 tapi...@gmail.com wrote:

> 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/e3d92a7b-3364-4731-9b41-6277517852d7n%40googlegroups.com.

Reply via email to