Re: [go-nuts] "src" folder changed to "pkg"

2021-09-13 Thread Clitson Belleau
Noted with thanks. I used "go get ." to download the package "github.com/google/gopacket", however Go is searching for it in "$GOPATH/src" while it was downloaded to "$GOPATH/pkg/mod". *--* Clitson On Mon, Sep 13, 2021 at 8:39 PM Ian Lance Taylor wrote: > On Mon, Sep 13, 2021 at 4:35 PM

Re: [go-nuts] Re: go build prints gc traces

2021-09-13 Thread Ian Lance Taylor
On Mon, Sep 13, 2021 at 2:40 PM jan.f...@gmail.com wrote: > > Removed ~/Library/Caches/go-build and the problem is now gone. Still I would > like to know what caused this. Sounds related to https://golag.org/issue/27628. The build cache caches the output of the tools. You may have gotten a

Re: [go-nuts] "src" folder changed to "pkg"

2021-09-13 Thread Ian Lance Taylor
On Mon, Sep 13, 2021 at 4:35 PM Clitson Belleau wrote: > Hi, > > Has anyone had an issue with Go referencing "src" folders from the which > was changed to "pkg" since v1.6? If so is there any way to fix this or any > link to a similar issue? > > I couldn't find anything in the documentation

Re: [go-nuts] Latest status of cl.exe support for cgo build on Windows

2021-09-13 Thread Ian Lance Taylor
On Mon, Sep 13, 2021 at 4:35 PM Makoto Shimazu wrote: > > I'm now configuring CircleCI to build our tools on Windows, and trying to use > cl.exe for it because CircleCI's Windows image has Visual Studio out of the > box. > However, it didn't work well so far because the command line flags

[go-nuts] Latest status of cl.exe support for cgo build on Windows

2021-09-13 Thread Makoto Shimazu
Hi members, I'm now configuring CircleCI to build our tools on Windows, and trying to use cl.exe for it because CircleCI's Windows image has Visual Studio out of the box. However, it didn't work well so far because the command line flags passed to cl.exe doesn't seem to be for cl.exe. Here's

[go-nuts] "src" folder changed to "pkg"

2021-09-13 Thread Clitson Belleau
Hi, Has anyone had an issue with Go referencing "src" folders from the which was changed to "pkg" since v1.6? If so is there any way to fix this or any link to a similar issue? I couldn't find anything in the documentation regarding this. I am running the latest v1.17.1 release. [image:

[go-nuts] Re: go build prints gc traces

2021-09-13 Thread jan.f...@gmail.com
Hi again, Removed ~/Library/Caches/go-build and the problem is now gone. Still I would like to know what caused this. Regards //Jan Flyborg måndag 13 september 2021 kl. 23:09:14 UTC+2 skrev jan.f...@gmail.com: > Hi everyone! > > Since I upgraded to Go 1.17.1 on macOS, it seems like

Re: [go-nuts] Loading Certificate and Key from string not file for HTTPs server

2021-09-13 Thread burak serdar
On Mon, Sep 13, 2021 at 3:03 PM Sam Caldwell wrote: > Does anyone have any ideas of an easy path to load certificate and key > files from a string rather than a file? > > *Use Case:* > 1. traditionally we all put a cleartext file on disk with our private key > and public certificate. If the

[go-nuts] go build prints gc traces

2021-09-13 Thread jan.f...@gmail.com
Hi everyone! Since I upgraded to Go 1.17.1 on macOS, it seems like whenever I run the compiler, it prints out GC traces just like it was invoked with GODEBUG=gctrace=1. It might look like this: $ go build main.go # github.com/pion/dtls/v2/pkg/crypto/clientcertificate gc 1 @0.004s 6%:

[go-nuts] Loading Certificate and Key from string not file for HTTPs server

2021-09-13 Thread Sam Caldwell
Does anyone have any ideas of an easy path to load certificate and key files from a string rather than a file? *Use Case:* 1. traditionally we all put a cleartext file on disk with our private key and public certificate. If the server is breached, we just regenerate all the things and move

Re: [go-nuts] Re: Debugging "fatal: morestack on gsignal"

2021-09-13 Thread Ian Lance Taylor
On Mon, Sep 13, 2021 at 5:34 AM Robert Engels wrote: > > If the C code overruns a stack allocated variable couldn’t it easily corrupt > the saved registers ? Yes, that is another possible cause. Thanks. Ian > > On Sep 9, 2021, at 2:14 PM, Ian Lance Taylor wrote: > > > > On Thu, Sep 9, 2021

Re: [go-nuts] Simplifying LLVM bitcode from gollvm

2021-09-13 Thread 'Than McIntosh' via golang-nuts
I feel as though we're getting into the realm of "what is the sound of one hand clapping"... ? Than On Mon, Sep 13, 2021 at 1:51 PM Ian Lance Taylor wrote: > On Mon, Sep 13, 2021 at 6:03 AM Khanh TN wrote: > > > > Also, from what I understand, if noone imports my package, I can also > remove

Re: [go-nuts] Simplifying LLVM bitcode from gollvm

2021-09-13 Thread Ian Lance Taylor
On Mon, Sep 13, 2021 at 6:03 AM Khanh TN wrote: > > Also, from what I understand, if noone imports my package, I can also remove > the "module asm" lines at the start. Is that right? What is the use of a package that nobody imports? Ian > On Monday, September 13, 2021 at 9:18:20 AM UTC+8

[go-nuts] Vet this! Proposal for language change to implement destructuring and aggregating assignment

2021-09-13 Thread Sam Hughes
Go is very intent on not implicitly casting types. This makes the expression of a destructuring assignment difficult to imagine in Go. The following represents a proposal to express both destructuring assignment (x,y := ZtoXandY(Z)) and aggregating assignment (x := XfromYandZ(y, z)), across

[go-nuts] google-api-go-client SiteVerification API 503 Error

2021-09-13 Thread Rayane BELLAZAAR
Hi everyone, I'm trying to use this api SiteVerification API by using the official Golang SDK and I have a weird error return by google API when I'm trying

Re: [go-nuts] Simplifying LLVM bitcode from gollvm

2021-09-13 Thread Khanh TN
Also, from what I understand, if noone imports my package, I can also remove the "module asm" lines at the start. Is that right? Khanh On Monday, September 13, 2021 at 9:18:20 AM UTC+8 Khanh TN wrote: > Hi, > Thanks, Than, for the answer. > So, if the .go file I'm compiling is the one with

Re: [go-nuts] Re: Debugging "fatal: morestack on gsignal"

2021-09-13 Thread Robert Engels
If the C code overruns a stack allocated variable couldn’t it easily corrupt the saved registers ? > On Sep 9, 2021, at 2:14 PM, Ian Lance Taylor wrote: > > On Thu, Sep 9, 2021 at 10:29 AM Varun V wrote: >> >> @Brian, We did not try that as the issue is happening with go 1.13.7 as well > >