(config-migration) Add do_migrate_from_v0()
implementation
#7657
web.yml
on: pull_request
Build and deploy site and docs
27s
Annotations
4 errors and 1 warning
`?` couldn't convert the error to `errors::DistError`:
cargo-dist/src/migrate/from_v0.rs#L37
error[E0277]: `?` couldn't convert the error to `errors::DistError`
--> cargo-dist/src/migrate/from_v0.rs:37:55
|
4 | pub fn do_migrate_from_v0() -> DistResult<()> {
| -------------- expected `errors::DistError` because of this
...
37 | let workspace_toml_text = toml::to_string(&config)?;
| ------------------------^ the trait `std::convert::From<axoasset::toml::ser::Error>` is not implemented for `errors::DistError`, which is required by `std::result::Result<(), errors::DistError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, axoasset::toml::ser::Error>>`
| |
| this can't be annotated with `?` because it has type `Result<_, axoasset::toml::ser::Error>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
<errors::DistError as std::convert::From<axoasset::AxoassetError>>
<errors::DistError as std::convert::From<axoprocess::AxoprocessError>>
<errors::DistError as std::convert::From<axoproject::errors::ProjectError>>
<errors::DistError as std::convert::From<axotag::errors::TagError>>
<errors::DistError as std::convert::From<camino::FromPathBufError>>
<errors::DistError as std::convert::From<dialoguer::Error>>
<errors::DistError as std::convert::From<dist_schema::target_lexicon::ParseError>>
<errors::DistError as std::convert::From<gazenot::error::GazenotError>>
and 5 others
= note: required for `std::result::Result<(), errors::DistError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, axoasset::toml::ser::Error>>`
|
`?` couldn't convert the error to `errors::DistError`:
cargo-dist/src/migrate/from_v0.rs#L37
error[E0277]: `?` couldn't convert the error to `errors::DistError`
--> cargo-dist/src/migrate/from_v0.rs:37:55
|
4 | pub fn do_migrate_from_v0() -> DistResult<()> {
| -------------- expected `errors::DistError` because of this
...
37 | let workspace_toml_text = toml::to_string(&config)?;
| ------------------------^ the trait `std::convert::From<axoasset::toml::ser::Error>` is not implemented for `errors::DistError`, which is required by `std::result::Result<(), errors::DistError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, axoasset::toml::ser::Error>>`
| |
| this can't be annotated with `?` because it has type `Result<_, axoasset::toml::ser::Error>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
<errors::DistError as std::convert::From<axoasset::AxoassetError>>
<errors::DistError as std::convert::From<axoprocess::AxoprocessError>>
<errors::DistError as std::convert::From<axoproject::errors::ProjectError>>
<errors::DistError as std::convert::From<axotag::errors::TagError>>
<errors::DistError as std::convert::From<camino::FromPathBufError>>
<errors::DistError as std::convert::From<dialoguer::Error>>
<errors::DistError as std::convert::From<dist_schema::target_lexicon::ParseError>>
<errors::DistError as std::convert::From<gazenot::error::GazenotError>>
and 5 others
= note: required for `std::result::Result<(), errors::DistError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, axoasset::toml::ser::Error>>`
|
cannot find function `load` in module `config`:
cargo-dist/src/migrate/from_v0.rs#L9
error[E0425]: cannot find function `load` in module `config`
--> cargo-dist/src/migrate/from_v0.rs:9:16
|
9 | if config::load(manifest_path).is_ok() {
| ^^^^ not found in `config`
|
help: consider importing one of these items
|
1 + use crate::config::v0::load;
|
1 + use crate::config::v1::load;
|
help: if you import `load`, refer to it directly
|
9 - if config::load(manifest_path).is_ok() {
9 + if load(manifest_path).is_ok() {
|
|
cannot find function `load` in module `config`:
cargo-dist/src/migrate/from_v0.rs#L9
error[E0425]: cannot find function `load` in module `config`
--> cargo-dist/src/migrate/from_v0.rs:9:16
|
9 | if config::load(manifest_path).is_ok() {
| ^^^^ not found in `config`
|
help: consider importing one of these items
|
1 + use crate::config::v0::load;
|
1 + use crate::config::v1::load;
|
help: if you import `load`, refer to it directly
|
9 - if config::load(manifest_path).is_ok() {
9 + if load(manifest_path).is_ok() {
|
|
Build and deploy site and docs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|