Closed dwedul-figure closed 2 years ago
Found this issue: https://github.com/Zondax/hid/issues/4 which is applicable, and added a comment about it.
Basically, v0.9.0 uses kIOMasterPortDefault
but the master
branch uses kIOMainPortDefault
. And the master
branch is what's getting pulled in. I haven't checked the github.com/cosmos/ledger-cosmos-go
repo yet, but I'd guess that it doesn't specify a version, so it's getting master instead of v0.9.0. The github.com/zondax/hid
repo only has one branch: master
, and one tag: v0.9.0
.
Adding replace github.com/zondax/hid => github.com/zondax/hid v0.9.0
to go.mod
(in the cosmo-sdk repo) allows the build to succeed.
Hmm... https://github.com/cosmos/ledger-cosmos-go/blob/master/go.mod#L11 has github.com/zondax/hid v0.9.0 // indirect
in it, so I'm not exactly sure why that isn't the version being pulled into cosmos-sdk with that ledger-cosmos-go library.
Looks like it's indirect from github.com/cosmos/ledger-go v0.9.2
, identified here: https://github.com/cosmos/ledger-go/blob/master/Gopkg.toml#L1-L3 as specifically v0.9.0
.
Instead of using a replace directive in the cosmos-sdk go.mod file, it's been decided to do this:
v0.9.0
instead of master
as an indirect include.There are a couple workarounds for folks using cosmos-sdk running into this build problem, only one of which is needed:
replace github.com/zondax/hid => github.com/zondax/hid v0.9.0
ledger
tag in the --tags
provided to go build
.unfortunately there isn't a clean way to avoid this due to the keyring library. ill close this for now, let us know if we should reopen
Summary of Bug
Running
make build
fails on a Mac that isn't yet on Monterey (MacOS V12.0+).Version
Master branch, current as of Friday Mar 11, 2022 19:20 UTC. commit hash
f4d50a989fec8ffbc2e640ad492d40f72580064c
Steps to Reproduce
make build
.Expected Results: It builds without any errors.
Actual Results:
Extra Notes: The
kIOMainPortDefault
variable is only available on MacOS 12.0+ (Monterey). Before that, it was namedkIOMasterPortDefault
.Temporary workaround:
For Admin Use