Bug 273156

Summary: Mk/Uses/go.mk: Build fails: package slices is not in GOROOT (/usr/local/go120/src/slices)
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Ports FrameworkAssignee: Golang Team (Nobody) <go>
Status: New ---    
Severity: Affects Only Me CC: lapo, ports-bugs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Makefile
none
Makefile none

Description Yuri Victorovich freebsd_committer freebsd_triage 2023-08-16 06:59:42 UTC
Created attachment 244137 [details]
Makefile

See the attached testcase.

> ===>  Building ledger-go from .
> balances.go:4:2: package slices is not in GOROOT (/usr/local/go120/src/slices)
> note: imported by a module that requires go 1.21
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2023-08-16 07:51:01 UTC
Created attachment 244140 [details]
Makefile

Another testcase.
Comment 2 goyette 2023-12-29 04:07:14 UTC
MARKED AS SPAM
Comment 3 Lapo Luchini 2024-02-21 08:18:57 UTC
Should be solved by using:

USES=		go:1.21,modules