Skip to content

cmd/go: Current 'go get' fails on some usages of 'import "C"' #11738

@siebenmann

Description

@siebenmann

On the current development git tip, an attempt to do 'go get -d github.com/derekparker/delve/cmd/dlv' fails for me with the following error message:

package github.com/derekparker/delve/cmd/dlv
    imports github.com/derekparker/delve/service
    imports github.com/derekparker/delve/service/api
    imports github.com/derekparker/delve/proc
    imports C: unrecognized import path "C"

I'm on 64-bit Fedora 22 Linux and I believe that this 'go get' is thus failing on the 'import "C"' in github.com/derekparker/delve/proc/breakpoints_linux_amd64.go. If I fetch the repo and so on by hand, I can do 'go install github.com/derekparker/delve/cmd/dlv' without problems; everything builds successfully. It's only the initial 'go get' that fails.

A run of git bisect reports that the first bad commit is af96030 'cmd/go: fix go get -u handling of changing dependencies', which at least appears to be a related change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions