Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-14 Thread Michael Baker
On 14/04/2021 20:25, Jeff Peck wrote: Just a complete shot in the dark. Have you verified that the environment variables you set are indeed getting picked up inside of your application? Try checking the output of os.GetEnv("HTTP_PROXY"), os.GetEnv("HTTPS_PROXY"), and os.GetEnv("NO_PROXY"). Ma

Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-14 Thread Jeff Peck
Just a complete shot in the dark. Have you verified that the environment variables you set are indeed getting picked up inside of your application? Try checking the output of os.GetEnv("HTTP_PROXY"), os.GetEnv("HTTPS_PROXY"), and os.GetEnv("NO_PROXY"). Make sure that if NO_PROXY is set that it

Re: [go-nuts] Trying to port Go to HPE NonStop x86 - Need some guidance

2021-04-14 Thread Ian Lance Taylor
On Wed, Apr 14, 2021 at 8:25 AM Shiva wrote: > > One file specifically, types_linux.go which I duped into types_nsx.go has a > build statement that goes like this '+build ignore'. Github discussions > around this suggest to me that I don't have to build this? But happy to be > corrected. The "

Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-14 Thread Orson Cart
On Wednesday, 14 April 2021 at 18:06:53 UTC+1 Adrian Ho wrote: > The "Name Resolution" section in https://golang.org/pkg/net/ says: > > On Unix systems, the resolver has two options for resolving names. It can > use a pure Go resolver that sends DNS requests directly to the servers > listed in

Re: [go-nuts] go text://protocol client?

2021-04-14 Thread 'Axel Wagner' via golang-nuts
I'm genuinely baffled by the lack of self-awareness on display here. On Wed, Apr 14, 2021 at 7:43 PM Thomas Bushnell BSG wrote: > In *Ash Wednesday, *T. S. Eliot wrote the line "Lady, three white > leopards sat under a juniper tree in the cool of the day" When he was > asked what it meant, h

Re: [go-nuts] go text://protocol client?

2021-04-14 Thread 'Thomas Bushnell BSG' via golang-nuts
In *Ash Wednesday, *T. S. Eliot wrote the line "Lady, three white leopards sat under a juniper tree in the cool of the day" When he was asked what it meant, he aisd "It means, 'Lady, three white leopards sat under a juniper tree in the cool of the day'" I suspect if there were a better way

Re: [go-nuts] Building gollvm fails on the latest commit

2021-04-14 Thread Khanh TN
Ah, thanks This will help me a lot Khanh On Thursday, April 15, 2021 at 1:13:17 AM UTC+8 th...@google.com wrote: > Hi again, > > Not quite sure what you are asking-- > > If you want to generated LLVM bitcode and then use that with your version > 10 llvm tools, then you'll either need to build a

Re: [go-nuts] Building gollvm fails on the latest commit

2021-04-14 Thread 'Than McIntosh' via golang-nuts
Hi again, Not quite sure what you are asking-- If you want to generated LLVM bitcode and then use that with your version 10 llvm tools, then you'll either need to build a version-10 compatible gollvm, or you'll need to upgrade the LLVM used by your tools/project. You can try building a V10-compa

Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-14 Thread Adrian Ho
On 14/4/21 6:39 am, Orson Cart wrote: So, to clarify: 1/ I have a proxy (Fiddler) running locally on port 2/ my /etc/hosts file has an entry as follows: 127.0.0.1 fiddler 3/ My HTTP_PROXY and HTTPS_PROXY environment variables are set to http://fiddler:  and http

Re: [go-nuts] Building gollvm fails on the latest commit

2021-04-14 Thread Khanh TN
Hi Ian, My project is currently running on LLVM10. If I want to use gollvm, do I just have to upgrade to the latest commits? Thanks Khanh On Wednesday, April 14, 2021 at 11:08:36 PM UTC+8 Khanh TN wrote: > Thanks, > I see it's hard to keep syncing with LLVM. They have new commits every > minute

Re: [go-nuts] Trying to port Go to HPE NonStop x86 - Need some guidance

2021-04-14 Thread Shiva
Thanks, Ian. I did as you suggested. One file specifically, types_linux.go which I duped into types_nsx.go has a build statement that goes like this '+build ignore'. Github discussions around this suggest to me that I don't have to build this? But happy to be corrected. Also, can I build the

Re: [go-nuts] Building gollvm fails on the latest commit

2021-04-14 Thread Khanh TN
Thanks, I see it's hard to keep syncing with LLVM. They have new commits every minute Khanh On Wednesday, April 14, 2021 at 10:53:13 PM UTC+8 th...@google.com wrote: > OK, I checked in https://go-review.googlesource.com/c/gollvm/+/310069, > should be resolved now. Thanks for reporting. > > On

Re: [go-nuts] Building gollvm fails on the latest commit

2021-04-14 Thread 'Than McIntosh' via golang-nuts
OK, I checked in https://go-review.googlesource.com/c/gollvm/+/310069, should be resolved now. Thanks for reporting. On Tue, Apr 13, 2021 at 7:30 PM Than McIntosh wrote: > Thanks for reporting. I'll look into sending a CL. > > Cheers, Than > > > On Tue, Apr 13, 2021 at 6:09 PM Khanh TN wrote: >

Re: [go-nuts] how to pass analyzer's flag with 'go vet -vettool'

2021-04-14 Thread 'wagner riffel' via golang-nuts
On Wed Apr 14, 2021 at 12:25 AM -03, Xiangdong Ji wrote: > I tried to modify fieldalignment to turn its '-fix' option on by > default, change worked as expected if running fieldalignment as a > standalone utility, but no rewriting is applied when running it as a > tool of 'go vet', could any expert

Re: [go-nuts] Go Semantics Aware diff tool?

2021-04-14 Thread Jan Mercl
On Wed, Apr 14, 2021 at 1:51 PM Steve Mynott wrote: > I'm aware tools exist to parse go and a quick google search search > fails me but I was wondering if there was a utility which was a > go-aware diff which I could use like "git diff master" which printed > out a list of funcs changed? Would t

[go-nuts] Go Semantics Aware diff tool?

2021-04-14 Thread Steve Mynott
I'm aware tools exist to parse go and a quick google search search fails me but I was wondering if there was a utility which was a go-aware diff which I could use like "git diff master" which printed out a list of funcs changed? Cheers Steve -- Steve Mynott cv25519/ECF8B611205B447E091246AF959E3

Re: [go-nuts] Case for Cond.WaitTimeout()

2021-04-14 Thread Jesper Louis Andersen
On Tue, Apr 13, 2021 at 3:00 PM Roman Leventov wrote: > Jesper, a single channel works if I provision it with big enough capacity > (1000), but this feels like an antipattern which can break. > Yes. On the flip side though, unbounded channels are also dangerous if the producer(s) outpaces consu