Skip to content
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

ci: undisable cgo on release build #56

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

pro-wh
Copy link
Contributor

@pro-wh pro-wh commented Apr 12, 2023

commit message

without cgo, we can't use ledger. the library does not link to libusb and always answers that no devices are connected.
https://github.com/Zondax/hid/blob/v0.9.1/hid_disabled.go#L7
this CLI is intended to work with ledger, so we're enabling this.

we're not aware of anything that specifically needed a non-cgo build. but if anyone depended on the program not being with cgo, you're welcome to comment.

without cgo, we can't use ledger. the library does not link to libusb
and always answers that no devices are connected.
https://github.com/Zondax/hid/blob/v0.9.1/hid_disabled.go#L7
this CLI is intended to work with ledger, so we're enabling this.
@pro-wh pro-wh added the ci Related to continuous integration label Apr 12, 2023
@@ -6,8 +6,6 @@ before:

builds:
- binary: oasis
env:
- CGO_ENABLED=0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the only reason for having this was that this config was copied from the oasis-web3-gateway that had this set.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as long as folks aren't using this in a no-libc container or something :D

@pro-wh pro-wh merged commit 3472a8b into master Apr 12, 2023
@pro-wh pro-wh deleted the pro-wh/feature/release-cgo branch April 12, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Related to continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants