Re: [go-nuts] Re: Using go run with #!

2023-06-21 Thread Dzmitry Lahoda
have seen, but 1. nix will not fix it to point to proper go, need custom derivation 2. hard to recall these symbols each time 3. exit issue 4. what else operational issue not named? and: 5. go is not shell language, but it has super nice remote packages to do shell like things. cli, process, unix

Re: [go-nuts] Static binary with c lib dep. Is it possible?

2023-06-21 Thread Marcondes Viana de Oliveira Junior
Thanks Ian, got it. On Wednesday, June 21, 2023 at 4:49:22 PM UTC-3 Ian Lance Taylor wrote: > On Wed, Jun 21, 2023 at 12:27 PM Marcondes Viana de Oliveira Junior > wrote: > > > > Hi all, I’m trying to create a static binary (no external deps) for > linux, on linux, using libwebp as dep. > > >

Re: [go-nuts] Static binary with c lib dep. Is it possible?

2023-06-21 Thread Ian Lance Taylor
On Wed, Jun 21, 2023 at 12:27 PM Marcondes Viana de Oliveira Junior wrote: > > Hi all, I’m trying to create a static binary (no external deps) for linux, on > linux, using libwebp as dep. > > webp.go > === > ... > /* > #cgo pkg-config: libwebp > #include > #include > ... > */ > > import

[go-nuts] Static binary with c lib dep. Is it possible?

2023-06-21 Thread Marcondes Viana de Oliveira Junior
Hi all, I’m trying to create a static binary (no external deps) for linux, on linux, using libwebp as dep. webp.go === ... /* #cgo pkg-config: libwebp #include #include ... */ import "C" ... === And I wand to generate a static linked bin. If I use CGO_ENABLED=0 === ... build

Re: [go-nuts] Re: Using go run with #!

2023-06-21 Thread Jan Mercl
On Wed, Jun 21, 2023 at 8:33 PM Dzmitry Lahoda wrote: > > rust just got shebang and cargo in one file. i was hoping using go as good > fit for some cases. but seem it will be rust. we are go, bash, nix, rust > coders. sure there is some js in our repo. but i hate it. i like to so script >

Re: [go-nuts] Re: Using go run with #!

2023-06-21 Thread Dzmitry Lahoda
rust just got shebang and cargo in one file. i was hoping using go as good fit for some cases. but seem it will be rust. we are go, bash, nix, rust coders. sure there is some js in our repo. but i hate it. i like to so script which goes into production. bash and nix goes to ops and devs and

[go-nuts] Go 1.21 Release Candidate 2 is released

2023-06-21 Thread Dmitri Shuralyov
Hello gophers, We have just released go1.21rc2, a release candidate version of Go 1.21. It is cut from release-branch.go1.21 at the revision tagged go1.21rc2. (An earlier revision was tagged go1.21rc1, but a bug found after tagging prevented its release process from completing.) Please try your