Skip to contentSkip to conversation

New: pkg-golang cannot build when main.go is in the root

Buildroot bugzilla at busybox.net 1 participant 2 messages Mar 23, 2021 – May 3, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=13651

Bug ID: 13651
Summary: pkg-golang cannot build when main.go is in the root
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: christian at paral.in
CC: buildroot at uclibc.org
Target Milestone: ---

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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 13651] pkg-golang cannot build when main.go is in the root

https://bugs.busybox.net/show_bug.cgi?id=13651

Christian Stewart <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Christian Stewart <[email protected]> --- It appears that now Golang supports build targets ending in "/." so this is resolved without action.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.