You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should make the following changes to cross_compile_assistance():
Make it return a Result<Config, CrossCompileConfigError> instead of the three-state CrossCompileAssistance enum, where some of the states really should be errors. (The call site can still choose to ignore the errors if eg --no-cross-compile-assistance is used.)
De-duplicate the help text
Stop ignoring I/O errors that occur when using which (other than not found errors)
…text (#729)
In order to compile buildpacks, users need to have both the musl
toolchain and the Rust target installed.
If the musl toolchain is missing, we already show help text that
says what packages need to be installed.
However, this help text did not mention the Rust target, meaning
after installing the musl tools, users would then go on to receive
another error - this time from the Rust compiler.
Whilst the Rust compiler error message does suggest running the
`rustup target add` command itself:
- this suggestion is often lost in the noise:
rust-lang/rust#117640
- it means the users has had two failed attempts in a row, which
could make the experience feel open-ended/frustrating
Now, the cross-compile assistance help text also suggests the
`rustup target add` step, improving the UX slightly.
The help texts are starting to include a fair bit of duplication, however,
refactoring is covered by the separate #727.
Fixes#716.
GUS-W-14438920.
I think we should make the following changes to
cross_compile_assistance()
:Result<Config, CrossCompileConfigError>
instead of the three-stateCrossCompileAssistance
enum, where some of the states really should be errors. (The call site can still choose to ignore the errors if eg--no-cross-compile-assistance
is used.)which
(other than not found errors)See:
https://github.com/heroku/libcnb.rs/blob/main/libcnb-package/src/cross_compile.rs
The text was updated successfully, but these errors were encountered: