Re: [go-nuts] Re: just started using modules, what have i missed?.

2024-05-02 Thread 'simon place' via golang-nuts
On Thursday 2 May 2024 at 22:45:55 UTC+1 burak serdar wrote: You can simply clone the github repo. You don't need go get for this. When you're ready, import it and then go mod tidy. ummm, could be the best way, i'll compare with the script, (dummy) route. -- You received this message becau

Re: [go-nuts] Unused local constants not a compiler error

2024-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2024 at 2:48 PM will@gmail.com wrote: > > Was this always the case? Is this a bug? Seems like it should be a compiler > error, like unused local variables. Yes, it's always been the case. It would probably be painful to change it now. Ian -- You received this message beca

Re: [go-nuts] understanding garbage collection logging

2024-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2024 at 12:48 PM Doug Whitfield wrote: > > I come from java-land, and am having some trouble figuring out gc logging in > go. I have been asked to contribute to a memory leak issue in Minio, which is > written in Go. The first way to try to rack down a memory leak is heap profili

[go-nuts] Unused local constants not a compiler error

2024-05-02 Thread will....@gmail.com
Was this always the case? Is this a bug? Seems like it should be a compiler error, like unused local variables. -- 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 g

Re: [go-nuts] Re: just started using modules, what have i missed?.

2024-05-02 Thread burak serdar
You can simply clone the github repo. You don't need go get for this. When you're ready, import it and then go mod tidy. On Thu, May 2, 2024 at 3:39 PM 'simon place' via golang-nuts wrote: > > thanks for the reply, yes a library, that i want to investigate, i don't have > a project until after.

[go-nuts] Re: just started using modules, what have i missed?.

2024-05-02 Thread 'simon place' via golang-nuts
thanks for the reply, yes a library, that i want to investigate, i don't have a project until after. this is whats ive been doing for years, but in 1.22 seems this way of working has stopped being supported. On Thursday 2 May 2024 at 19:31:53 UTC+1 Carla Pfaff wrote: > It's not clear what your

[go-nuts] understanding garbage collection logging

2024-05-02 Thread Doug Whitfield
Hi folks, I come from java-land, and am having some trouble figuring out gc logging in go. I have been asked to contribute to a memory leak issue in Minio, which is written in Go. I found https://www.ardanlabs.com/blog/2019/05/garbage-collection-in-go-part2-gctraces.html but I cannot tell if

[go-nuts] Re: just started using modules, what have i missed?.

2024-05-02 Thread 'Carla Pfaff' via golang-nuts
It's not clear what your end goal is. github.com/vulkan-go/vulkan is a library. Do you want to use it as a dependency in one of your projects or not? If you want to use it as a dependency, then yes, "go mod init " your project first before adding a dependency with "go get". On Thursday 2 May 20

[go-nuts] just started using modules, what have i missed?.

2024-05-02 Thread 'simon place' via golang-nuts
*simon@fedora:~$ go get github.com/vulkan-go/vulkan* *go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For mor

[go-nuts] [security] Go 1.22.3 and Go 1.21.10 pre-announcement

2024-05-02 Thread announce
Hello gophers, We plan to issue Go 1.22.3 and Go 1.21.10 during US business hours on Tuesday, May 7. These minor releases include PRIVATE security fixes to the standard library and the toolchain, covering the following CVE: - CVE-2024-24787 Following our security policy, this is the pre