Opened 5 months ago

Closed 4 months ago

#69174 closed defect (fixed)

go @1.21.6 (lang): go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

Reported by: ksshannon (Kyle Shannon) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.9.0
Keywords: Cc: herbygillot (Herby Gillot)
Port: go

Description

go @1.21.6 fails when running go tool dist list:

❯ go tool dist list
go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

Possible patch:

❯ git diff
diff --git a/lang/go/Portfile b/lang/go/Portfile
index bab14ac3461..6778daca75c 100644
--- a/lang/go/Portfile
+++ b/lang/go/Portfile
@@ -287,7 +287,7 @@ destroot {
     xinstall -d ${grfdir}
     xinstall -d ${docdir}

-    foreach f {api bin lib misc pkg src test} {
+    foreach f {api bin lib misc pkg src test VERSION} {
         copy ${worksrcpath}/${f} ${grfdir}
     }

I did my best to test with a local Portfile, and it seemed to work. I'm unsure how to test the port variants though, first time looking at Portfiles.

Thank you for your time.

Change History (2)

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Cc: herbygillot added
Owner: set to ci42
Status: newassigned

comment:2 Changed 4 months ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In 04a9c62cd45ebe437e5e74e2f48f6bbc4ea40274/macports-ports (master):

go: update to 1.22.0

Fixes: #69174

Note: See TracTickets for help on using tickets.