Bug 273156 - Mk/Uses/go.mk: Build fails: package slices is not in GOROOT (/usr/local/go120/src/slices)
Summary: Mk/Uses/go.mk: Build fails: package slices is not in GOROOT (/usr/local/go120...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Golang Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-16 06:59 UTC by Yuri Victorovich
Modified: 2024-02-21 08:18 UTC (History)
2 users (show)

See Also:


Attachments
Makefile (363 bytes, text/plain)
2023-08-16 06:59 UTC, Yuri Victorovich
no flags Details
Makefile (388 bytes, text/plain)
2023-08-16 07:51 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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