For info, this is broken in Fedora 39, released a day or two ago:

$ docker pull fedora:latest
$ docker run -it fedora:latest /bin/bash
[root@01330dfaac82 /]# dnf update && dnf install -y golang
...
[root@01330dfaac82 /]# go version
go version go1.21.3 linux/amd64
[root@01330dfaac82 /]# go tool dist list
go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

On Saturday, August 27, 2022 at 9:21:15 PM UTC+2 Ian Lance Taylor wrote:

> On Sat, Aug 27, 2022 at 12:06 PM Lonnie TC <lonnie.c...@gmail.com> wrote:
> >
> > I hope that everyone is doing well today.
> > I am working on a Golang project to port go-pmem over to MSYS2 using 
> MinGW 64:
> >
> > https://github.com/jerrinsg/go-pmem
> >
> > In trying to build the patched Go distro toolchain, I am getting some 
> strange error in the build that I do not know how to handle and am hoping 
> that someone can answer this for me.
> >
> > go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT
> >
> > any help would be truly appreciate.
>
> I don't know what go-pmem is, but a Go distribution should have a file
> $GOROOT/VERSION that contains the version number of the release. If
> you download the sources of, say, the Go 1.19 release, you will see a
> VERSION file. For development purposes, if that VERSION file does not
> exist, the Go build will pull the version from the git repo. You seem
> to have Go sources that are not in a git repo and also do not have a
> VERSION file. That setup is not expected or supported. The simple
> fix is to create your own VERSION file.
>
> Ian
>

-- 
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/6bcfe005-1b23-48a1-ae9d-9859943a3e9dn%40googlegroups.com.

Reply via email to