Coder Social home page Coder Social logo

gotype errors in git tip about libvirt-go HOT 5 CLOSED

libvirt avatar libvirt commented on August 14, 2024
gotype errors in git tip

from libvirt-go.

Comments (5)

purpleidea avatar purpleidea commented on August 14, 2024

It seems this only happens in golang 1.9+

from libvirt-go.

berrange avatar berrange commented on August 14, 2024

The integration_test.go covers passing libvirt.DOMAIN_START_PAUSED to dom.CreateWithFlags, and that compiles & runs fine with go 1.9:

https://travis-ci.org/libvirt/libvirt-go

So I don't see anything that needs fixing in libvirt here. This is simply a tools bug.

from libvirt-go.

jonathangold avatar jonathangold commented on August 14, 2024

@purpleidea It appears this issue is caused by gotype's choice to use the source importer for go 1.9 by default. According to https://golang.org/pkg/go/importer/#For

if the compiler argument is "source" [...] if the package API depends on cgo-defined entities, the type checker won't have access to those.

This issue affects more than just gometalinter. Any tool that switched to the source importer for go 1.9 breaks compatibility with projects that use cgo imports.

from libvirt-go.

purpleidea avatar purpleidea commented on August 14, 2024

@jonathangold Thanks for tracking this down! Is there an upstream (in golang) issue we can tag or open?

from libvirt-go.

jonathangold avatar jonathangold commented on August 14, 2024

@purpleidea Given your familiarity with the go ecosystem, it would be helpful to chat about the appropriate issue(s) to open and/or tag.

from libvirt-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.