[go-nuts] Re: go mod download fails on docker for 1.20 (but not for 1.18)

2024-01-14 Thread Dmitry Anderson (4nd3rs0n)
I'm having the same problem. For now I just vendor modules to a project 
modules and run without installing anything from the container, but also 
would like to find a fix.
On Monday, May 22, 2023 at 2:29:08 AM UTC+2 Joao Miguel Ferreira wrote:

> Hello all,
>
> My docker build is ok with FROM golang:1.18-alpine, FROM 
> golang:1.18-buster and FROM golang:1.18-bullseye images. The application 
> works. All is fine on the 3 cases.
>
> But the docker build fails with FROM golang:1.20-alpine, FROM 
> golang:1.20-buster and FROM golang:1.20-bullseye images.
>
> This is the error message I get:
>
> go: github.com/davecgh/go-...@v1.1.1 
> : Get "
> https://proxy.golang.org/github.com/davecgh/go-spew/@v/v1.1.1.mod": dial 
> tcp [2a00:1450:4003:801::2011]:443: connect: cannot assign requested address
>
> It happens during go mod download. It happens when building on Debian11, 
> Debian12 and Ubuntu22 hosts.
>
> I have tried many things including going inside the container and 
> downloading the module with wget. It works fine. Maybe something changed 
> from 1.18 to 1.20 related to ipv6.
>
> I would like to be able to do the build with one golang 1.20 image. But I 
> can not understand what is wrong. Can you help clarify that error and how 
> to overcome it?
>
>
>

-- 
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/c27a9dcc-a0a4-475b-8af6-b10debe2eb09n%40googlegroups.com.


Re: [go-nuts] Re: does anyone have an example of a Go kernel module

2024-01-14 Thread Amnon
Why would you want to do that? The amount of stuff going on under the hood 
in a Go program (GC, scheduling, etc)
make it a bad fit for low level kernel stuff. 

So best stick to C.
Writing a Kernel module in C is well supported and documented.
Having a skim through https://lwn.net/Kernel/LDD3/ .

Recently some people have been writing modules in Rust.
I have not tried it myself, but there is some documentation on the web, eg 
https://www.kernel.org/doc/html/latest/rust/quick-start.html

Or as others have suggested write your program as a plain old user-mode 
program in Go,
and write a minimal device driver which creates a sys-fs device tree that 
your program can talk to.

On Monday 8 January 2024 at 02:20:00 UTC Robert Engels wrote:

> Hasn’t been touched in 6 years and it doesn’t work. I guess they figured 
> out it wasn’t worth the effort. 
>
> The only plausible way to write a kernel module in Go is… don’t.
>
> Maybe run a user space Go process and some sort of shared memory 
> communication. 
>
> On Jan 7, 2024, at 8:06 PM, Hữu Hà  wrote:
>
> 
>
> Maybe you mean something like this ?
>
> https://github.com/gopher-os/gopher-os
>
> Vào lúc 04:22:10 UTC+7 ngày Chủ Nhật, 7 tháng 1, 2024, Siglo XIX đã viết:
>
>> I have tried many ways but now that the ecosystem is more mature maybe 
>> someone knows of an example of how to make a Linux kernle module with Go,.
>>
> -- 
> 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/cf1a03df-6782-4ef7-92af-4d3f3dc833c8n%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/a9f359be-38bb-43ca-bab5-fb41fe59aea7n%40googlegroups.com.