Opened 2 years ago

Last modified 2 years ago

#64988 closed defect

goplus: needs GOPROOT set to work — at Version 2

Reported by: kurthindenburg (Kurt Hindenburg) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.7.99
Keywords: Cc:
Port: goplus

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After installing, doing anything generates this error:

2022/04/11 22:35:28 GOPROOT not found: no such file or directory
panic: GOPROOT not found: no such file or directory

I don't see any docs or anything in the source code or website to explain what that variable should point to. Perhaps, add a note to the portfile or set it if anyone knows what it should point to.

Change History (2)

comment:1 Changed 2 years ago by kurthindenburg (Kurt Hindenburg)

It seems odd to see the build locations in this output - installed from binary

gop -v                             
2022/04/11 23:03:45 GOPROOT not found: no such file or directory
panic: GOPROOT not found: no such file or directory


goroutine 1 [running]:
log.Panicln({0xc0000c1b98, 0xc0000c1be0, 0x101200a})
        /opt/local/lib/go/src/log/log.go:368 +0x65
github.com/goplus/gop/env.GOPROOT()
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_goplus/goplus/work/gopath/src/github.com/goplus/gop/env/path.go:34 +0x79
github.com/goplus/gop/x/gopmod.init()
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_goplus/goplus/work/gopath/src/github.com/goplus/gop/x/gopmod/gocmd.go:43 +0x93
Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.