-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
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.
The changes look good to me. I was surprised to see the change from the pattern:
format!("{}", n)
to format!("{n}")
. Is there any reason for the change, should I follow that convention in the future?
I pulled down the branch planning to run my own instance of the Docker container, but when I tried to build it by running this from the root of the repo:
$ docker build -t kepler .
But I hit an error:
#10 334.6 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#10 334.6 error: could not compile `termcolor`
#10 334.6
#10 334.6 Caused by:
#10 334.6 process didn't exit successfully: `rustc --crate-name termcolor --edition=2018 /home/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/termcolor-1.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=a7a709df87c9689f -C extra-filename=-a7a709df87c9689f --out-dir /tmp/cargo-installxkX3TF/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/tmp/cargo-installxkX3TF/x86_64-unknown-linux-musl/release/deps -L dependency=/tmp/cargo-installxkX3TF/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
Is this a known issue (like with m1 Macs for instance)? Or is this something we need to work around before approval?
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.
The Build issue is M1 specific so I can't go any further, I'm approving but if anyone else can test the container locally, that would be useful.
I think clippy has been updated to have new rules, all the |
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.
Kelsey is right, I don't thing you have test the docker build?
BTW you can build most images for x86 with |
Description
Docker builds have been broken by the rate limiting of
protoc
builds from the Github api stemming from it's (unavoidable) use in libp2p, as well as some other issues. This PR swaps to a branch of libp2p which removes the dependancy onprotoc
in favour of a pure rust impl. This is not a perfect fix, once the corresponding libp2p PR is merged this branch will disappear and another PR will be needed to go back to libp2p trunk. Another option is to fully remove libp2p for now, but this would entail a number of breaking changes.Type
Diligence Checklist
(Please delete options that are not relevant)