Comments (5)
It seems this only happens in golang 1.9+
from libvirt-go.
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.
@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.
@jonathangold Thanks for tracking this down! Is there an upstream (in golang) issue we can tag or open?
from libvirt-go.
@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)
- Accessing Connect.IsAlive()'s error segfaults HOT 1
- Panic with ^C HOT 13
- Disk Latency for Domain HOT 2
- function not supported by the connection driver: virStreamSend HOT 2
- compilation failure HOT 2
- Compilation error with latest release HOT 6
- when using qemu+ssh connect,can't close the connection HOT 2
- static compilation HOT 3
- undefined: libvirt.QemuAgentCommand HOT 3
- Testing lockdown HOT 1
- /usr/lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_4.1.0' not found HOT 1
- cannot parse json HOT 1
- as a bad magic number HOT 1
- windows 环境下在golang 如何使用该库 HOT 1
- Can't compile on Debian10 HOT 1
- How to build windows app on mac HOT 1
- virError(Code=1, Domain=0, Message='internal error: could not initialize domain event timer') HOT 1
- Cross-compiling fails on macos with the GOOS = linux HOT 1
- How can I get domain runtime IP Address HOT 1
- How to attach device persistently HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvirt-go.