Bug 13651 - pkg-golang cannot build when main.go is in the root
Summary: pkg-golang cannot build when main.go is in the root
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-23 05:07 UTC by Christian Stewart
Modified: 2021-05-03 02:59 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

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