Reported to Fedora at https://bugzilla.redhat.com/show_bug.cgi?id=2248782

On Thursday, November 9, 2023 at 1:00:55 AM UTC+1 twp...@gmail.com wrote:

> 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/e19c7e0e-11cd-4f1c-9856-cd0645b54697n%40googlegroups.com.

Reply via email to