[MacPorts] #69174: go @1.21.6 (lang): go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT
MacPorts
noreply at macports.org
Wed Jan 24 17:08:04 UTC 2024
#69174: go @1.21.6 (lang): go tool dist: FAILED: not a Git repo; must put a VERSION
file in $GOROOT
-----------------------+--------------------
Reporter: ksshannon | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.0
Keywords: | Port: go
-----------------------+--------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/69174>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list