Opened 2 years ago

Closed 23 months ago

#64988 closed defect (fixed)

goplus: needs GOPROOT set to work

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 (7)

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)

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

I think the new unreleased 1.1 will fix this

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

In a3fbb416ea672e17c4af515ad00072b4870da664/macports-ports (master):

goplus: update to 1.1.0

See: #64988

comment:5 Changed 23 months ago by herbygillot (Herby Gillot)

In 17de40861cb2939c03df2afab27f2352d9c760ef/macports-ports (master):

gop: update to 1.1.2

See: #64988

comment:6 Changed 23 months ago by herbygillot (Herby Gillot)

goplus has seen updates but it seems that this is still an issue, as far as I can tell.

comment:7 Changed 23 months ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In 182b242b7b6a05371ccca6340b4307843b91e1ab/macports-ports (master):

gop: build using goplus' build scripts

Fixes: #64988

Note: See TracTickets for help on using tickets.