-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c-for-go: use digitalocean-labs fork #208
c-for-go: use digitalocean-labs fork #208
Conversation
Te current c-for-go project needs enhancement in order to accomodate generating bindings from the latest libvirt source. This situation can be addressed by using a private fork (at least, until any required changes can be merged upstream). This commit streamlines the build process for c-for-go to allow building a private version to the bin/ directory. This allows go-libvirt to operate without contaminating the GOPATH with a different version. This commit adds a 'replace' directive to go.mod in order to allow for the eventual usage of a custom version, but does not yet move utilize a different version (because the commit referenced in go.mod is unchanged). Because the 'go install' tool recently changed behavior to NOT update the go.mod file, this commit also adds a reference to c-for-go in a file using an unused build tag in order for it to persist, so that the 'replace' directive remains effective.
c27484e
to
bfbdb49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't going to work as-is.
|
||
- name: Install golint | ||
run: go get -u golang.org/x/lint/golint | ||
run: go install golang.org/x/lint/golint@latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use golangci for this - it'd be a superset of golint, and there's a public action for it.
I should also mention that the c-for-go project has accepted patches from us in the past, though I haven't looked at the changes this time round so I don't know if this is something they're likely to object to. |
Now that our |
Superseded by #212. |
Te current c-for-go project needs enhancement in order to accomodate generating bindings from the latest libvirt source.
This situation can be addressed by using a private fork (at least, until any required changes can be merged upstream). This commit streamlines the build process for c-for-go to allow building a private version to the bin/ directory. This allows go-libvirt to operate without contaminating the GOPATH with a different version.
This commit adds a 'replace' directive to go.mod in order to allow for the eventual usage of a custom version, but does not yet move utilize a different version (because the commit referenced in go.mod is unchanged).
Because the 'go install' tool recently changed behavior to NOT update the go.mod file, this commit also adds a reference to c-for-go in libvirt.go in order for it to persist, so that the 'replace' directive remains effective.