Re: [go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
reasonable. Thanks both for explanations. On Friday, February 19, 2021 at 7:20:36 AM UTC-5 Amnon wrote: > go mod tidy has to ignore build tags. > > Because if it did not ignore build tags, it would delete dependencies > needed by other platforms. > > On Friday, 19 February 2021 at 02:23:45 UTC Ian Lance Taylor wrote: > >> On Thu, Feb 18, 2021 at 3:29 PM tapi...@gmail.com >> wrote: >> > >> > Thanks for the link. >> > So "go mod tidy" ignores build tags, and this is intended? >> >> That is my understanding, yes. >> >> Ian >> >> >> > On Thursday, February 18, 2021 at 9:28:53 AM UTC-5 Ian Lance Taylor >> wrote: >> >> >> >> On Thu, Feb 18, 2021 at 1:06 AM tapi...@gmail.com >> wrote: >> >> > >> >> > BTW, "go1.15 build" succeeds. >> >> > >> >> > On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com >> wrote: >> >> >> >> >> >> Does this mean the "+build go1.N" directive is only intended to >> cooperate with Go toolchain 1.N+? >> >> >> >> >> >> See the discussion at https://golang.org/issue/43980. >> >> >> >> 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...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/9a4eb260-d5de-4a7d-89e3-e26a9ff41455n%40googlegroups.com >> . >> > -- 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/4493d0de-d8b4-4092-9da8-10f9ebb5dffcn%40googlegroups.com.
Re: [go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
go mod tidy has to ignore build tags. Because if it did not ignore build tags, it would delete dependencies needed by other platforms. On Friday, 19 February 2021 at 02:23:45 UTC Ian Lance Taylor wrote: > On Thu, Feb 18, 2021 at 3:29 PM tapi...@gmail.com > wrote: > > > > Thanks for the link. > > So "go mod tidy" ignores build tags, and this is intended? > > That is my understanding, yes. > > Ian > > > > On Thursday, February 18, 2021 at 9:28:53 AM UTC-5 Ian Lance Taylor > wrote: > >> > >> On Thu, Feb 18, 2021 at 1:06 AM tapi...@gmail.com > wrote: > >> > > >> > BTW, "go1.15 build" succeeds. > >> > > >> > On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com > wrote: > >> >> > >> >> Does this mean the "+build go1.N" directive is only intended to > cooperate with Go toolchain 1.N+? > >> > >> > >> See the discussion at https://golang.org/issue/43980. > >> > >> 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...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/9a4eb260-d5de-4a7d-89e3-e26a9ff41455n%40googlegroups.com > . > -- 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/365784a1-89fd-41c9-a900-8964194100b7n%40googlegroups.com.
Re: [go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
On Thu, Feb 18, 2021 at 3:29 PM tapi...@gmail.com wrote: > > Thanks for the link. > So "go mod tidy" ignores build tags, and this is intended? That is my understanding, yes. Ian > On Thursday, February 18, 2021 at 9:28:53 AM UTC-5 Ian Lance Taylor wrote: >> >> On Thu, Feb 18, 2021 at 1:06 AM tapi...@gmail.com wrote: >> > >> > BTW, "go1.15 build" succeeds. >> > >> > On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com wrote: >> >> >> >> Does this mean the "+build go1.N" directive is only intended to cooperate >> >> with Go toolchain 1.N+? >> >> >> See the discussion at https://golang.org/issue/43980. >> >> 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/9a4eb260-d5de-4a7d-89e3-e26a9ff41455n%40googlegroups.com. -- 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/CAOyqgcUwMiHB%3D9%2ByXmd5bnXbjc8uT2EApbTynpgJecMjYX%2BBTw%40mail.gmail.com.
Re: [go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
Thanks for the link. So "go mod tidy" ignores build tags, and this is intended? On Thursday, February 18, 2021 at 9:28:53 AM UTC-5 Ian Lance Taylor wrote: > On Thu, Feb 18, 2021 at 1:06 AM tapi...@gmail.com > wrote: > > > > BTW, "go1.15 build" succeeds. > > > > On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com > wrote: > >> > >> Does this mean the "+build go1.N" directive is only intended to > cooperate with Go toolchain 1.N+? > > > See the discussion at https://golang.org/issue/43980. > > 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/9a4eb260-d5de-4a7d-89e3-e26a9ff41455n%40googlegroups.com.
Re: [go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
On Thu, Feb 18, 2021 at 1:06 AM tapi...@gmail.com wrote: > > BTW, "go1.15 build" succeeds. > > On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com wrote: >> >> Does this mean the "+build go1.N" directive is only intended to cooperate >> with Go toolchain 1.N+? See the discussion at https://golang.org/issue/43980. 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/CAOyqgcXwN5qvC5fNoPx4ugXOe3qcU04Xa4ikJ%2B70Fimdyq1iKA%40mail.gmail.com.
[go-nuts] Re: "go1.15 mod tidy" fails if the current project depends on a module containing a file using embed and guarded by "+build go1.16"
BTW, "go1.15 build" succeeds. On Thursday, February 18, 2021 at 4:03:50 AM UTC-5 tapi...@gmail.com wrote: > Does this mean the "+build go1.N" directive is only intended to cooperate > with Go toolchain 1.N+? > -- 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/3346c3dd-e0c2-4684-9c6c-6a8b1d948c68n%40googlegroups.com.