Bug 13651

Summary: pkg-golang cannot build when main.go is in the root
Product: buildroot Reporter: Christian Stewart <christian>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Christian Stewart 2021-03-23 05:07:22 UTC
Currently pkg-golang defaults to "." as a build target, generating a command like

go build github.com/containerd/nerdctl/.

However, the "/." is not valid, and the go command fails.

There's no way to specify that we want to build just "github.com/containerd/nerdctl" with no sub-package (if the main.go is in the root).
Comment 1 Christian Stewart 2021-05-03 02:59:56 UTC
It appears that now Golang supports build targets ending in "/." so this is resolved without action.