Skip to content

[WIP] Implement config v0 -> v1 migration. #3270

[WIP] Implement config v0 -> v1 migration.

[WIP] Implement config v0 -> v1 migration. #3270

Triggered via pull request December 20, 2024 20:53
Status Success
Total duration 37s
Artifacts 2

release.yml

on: pull_request
Matrix: build-local-artifacts
build-global-artifacts
0s
build-global-artifacts
publish-homebrew-formula
0s
publish-homebrew-formula
publish-npm
0s
publish-npm
custom-publish-crates  /  cargo-publish
custom-publish-crates / cargo-publish
announce
0s
announce
Fit to window
Zoom out
Zoom in

Annotations

48 errors
no field `install_updater` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L931
error[E0609]: no field `install_updater` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:931:14 | 931 | meta.install_updater = Some(install_updater); | ^^^^^^^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L910
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:910:14 | 908 | && meta | ____________- 909 | | .installers 910 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `install_updater` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L907
error[E0609]: no field `install_updater` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:907:18 | 907 | if orig_meta.install_updater.is_none() | ^^^^^^^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `publish_jobs` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L901
error[E0609]: no field `publish_jobs` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:901:10 | 901 | meta.publish_jobs = if publish_jobs.is_empty() { | ^^^^^^^^^^^^ unknown field | help: a field with a similar name exists | 901 | meta.publishers = if publish_jobs.is_empty() { | ~~~~~~~~~~
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L896
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:896:18 | 896 | meta.npm_scope = None; | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L892
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:892:14 | 890 | let npm_toggled_off = orig_meta | _______________________________- 891 | | .installers 892 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L884
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:884:22 | 884 | meta.npm_scope = Some(scope.to_owned()); | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L882
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:882:22 | 882 | meta.npm_scope = None; | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L844
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:844:14 | 842 | let npm_is_new = !orig_meta | ___________________________- 843 | | .installers 844 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L837
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:837:10 | 835 | if meta | ________- 836 | | .installers 837 | | .as_deref() | |_________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L829
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:829:18 | 829 | meta.tap = None; | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L825
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:825:14 | 823 | let homebrew_toggled_off = orig_meta | ____________________________________- 824 | | .installers 825 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L809
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:809:22 | 809 | meta.tap = Some(tap.to_owned()); | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L807
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:807:22 | 807 | meta.tap = None; | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L784
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:784:14 | 782 | let homebrew_is_new = !orig_meta | ________________________________- 783 | | .installers 784 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L778
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:778:10 | 776 | if meta | ________- 777 | | .installers 778 | | .as_deref() | |_________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `publish_jobs` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L773
error[E0609]: no field `publish_jobs` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:773:38 | 773 | let mut publish_jobs = orig_meta.publish_jobs.clone().unwrap_or(vec![]); | ^^^^^^^^^^^^ unknown field | help: a field with a similar name exists | 773 | let mut publish_jobs = orig_meta.publishers.clone().unwrap_or(vec![]); | ~~~~~~~~~~
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L730
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:730:18 | 728 | let config_had_it = meta | _________________________________- 729 | | .installers 730 | | .as_deref() | |_________________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `install_updater` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L931
error[E0609]: no field `install_updater` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:931:14 | 931 | meta.install_updater = Some(install_updater); | ^^^^^^^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L910
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:910:14 | 908 | && meta | ____________- 909 | | .installers 910 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `install_updater` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L907
error[E0609]: no field `install_updater` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:907:18 | 907 | if orig_meta.install_updater.is_none() | ^^^^^^^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `publish_jobs` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L901
error[E0609]: no field `publish_jobs` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:901:10 | 901 | meta.publish_jobs = if publish_jobs.is_empty() { | ^^^^^^^^^^^^ unknown field | help: a field with a similar name exists | 901 | meta.publishers = if publish_jobs.is_empty() { | ~~~~~~~~~~
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L896
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:896:18 | 896 | meta.npm_scope = None; | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L892
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:892:14 | 890 | let npm_toggled_off = orig_meta | _______________________________- 891 | | .installers 892 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no method named `is_empty` found for reference `&config::v1::ci::CiLayer` in the current scope: cargo-dist/src/init.rs#L707
error[E0599]: no method named `is_empty` found for reference `&config::v1::ci::CiLayer` in the current scope --> cargo-dist/src/init.rs:707:48 | 707 | let has_ci = meta.ci.as_ref().map(|ci| !ci.is_empty()).unwrap_or(false); | ^^^^^^^^ method not found in `&CiLayer` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: candidate #1: `axoasset::toml_edit::TableLike` candidate #2: `bitflags::traits::Flags` candidate #3: `gimli::read::reader::Reader` candidate #4: `nix::NixPath` candidate #5: `similar::DiffableStr` candidate #6: `std::iter::ExactSizeIterator`
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L884
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:884:22 | 884 | meta.npm_scope = Some(scope.to_owned()); | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `npm_scope` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L882
error[E0609]: no field `npm_scope` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:882:22 | 882 | meta.npm_scope = None; | ^^^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L844
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:844:14 | 842 | let npm_is_new = !orig_meta | ___________________________- 843 | | .installers 844 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L837
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:837:10 | 835 | if meta | ________- 836 | | .installers 837 | | .as_deref() | |_________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
mismatched types: cargo-dist/src/init.rs#L702
error[E0308]: mismatched types --> cargo-dist/src/init.rs:702:57 | 702 | meta.ci = if ci.is_empty() { None } else { Some(ci) }; | ---- ^^ expected `CiLayer`, found `Vec<CiStyle>` | | | arguments to this enum variant are incorrect | = note: expected struct `config::v1::ci::CiLayer` found struct `std::vec::Vec<config::CiStyle>` help: the type constructed contains `std::vec::Vec<config::CiStyle>` due to the type of the argument passed --> cargo-dist/src/init.rs:702:52 | 702 | meta.ci = if ci.is_empty() { None } else { Some(ci) }; | ^^^^^--^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L829
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:829:18 | 829 | meta.tap = None; | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L825
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:825:14 | 823 | let homebrew_toggled_off = orig_meta | ____________________________________- 824 | | .installers 825 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no method named `contains` found for reference `&config::v1::ci::CiLayer` in the current scope: cargo-dist/src/init.rs#L660
error[E0599]: no method named `contains` found for reference `&config::v1::ci::CiLayer` in the current scope --> cargo-dist/src/init.rs:660:30 | 660 | .map(|ci| ci.contains(item)) | ^^^^^^^^ method not found in `&CiLayer` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following traits define an item `contains`, perhaps you need to implement one of them: candidate #1: `bitflags::traits::Flags` candidate #2: `ipnet::ipnet::Contains` candidate #3: `itertools::Itertools` candidate #4: `itertools::Itertools` candidate #5: `itertools::Itertools` candidate #6: `std::ops::RangeBounds`
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L809
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:809:22 | 809 | meta.tap = Some(tap.to_owned()); | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
no field `tap` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L807
error[E0609]: no field `tap` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:807:22 | 807 | meta.tap = None; | ^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L784
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:784:14 | 782 | let homebrew_is_new = !orig_meta | ________________________________- 783 | | .installers 784 | | .as_deref() | |_____________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L778
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:778:10 | 776 | if meta | ________- 777 | | .installers 778 | | .as_deref() | |_________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `publish_jobs` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L773
error[E0609]: no field `publish_jobs` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:773:38 | 773 | let mut publish_jobs = orig_meta.publish_jobs.clone().unwrap_or(vec![]); | ^^^^^^^^^^^^ unknown field | help: a field with a similar name exists | 773 | let mut publish_jobs = orig_meta.publishers.clone().unwrap_or(vec![]); | ~~~~~~~~~~
the method `as_deref` exists for enum `Option<CiLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L646
error[E0599]: the method `as_deref` exists for enum `Option<CiLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:646:16 | 646 | if meta.ci.as_deref().unwrap_or_default().is_empty() { | ^^^^^^^^ | ::: cargo-dist/src/config/v1/ci/mod.rs:28:1 | 28 | pub struct CiLayer { | ------------------ doesn't satisfy `config::v1::ci::CiLayer: lazy_static::__Deref` | = note: the following trait bounds were not satisfied: `config::v1::ci::CiLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L730
error[E0599]: the method `as_deref` exists for enum `Option<InstallerLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:730:18 | 728 | let config_had_it = meta | _________________________________- 729 | | .installers 730 | | .as_deref() | |_________________-^^^^^^^^ | ::: cargo-dist/src/config/v1/installers/mod.rs:70:1 | 70 | pub struct InstallerLayer { | ------------------------- doesn't satisfy `_: __Deref` | = note: the following trait bounds were not satisfied: `config::v1::installers::InstallerLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `hosting` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L546
error[E0609]: no field `hosting` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:546:14 | 546 | meta.hosting = Some(args.host.clone()); | ^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
mismatched types: cargo-dist/src/init.rs#L346
error[E0308]: mismatched types --> cargo-dist/src/init.rs:346:29 | 346 | workspace: Some(meta), | ---- ^^^^ expected `DistMetadata`, found `TomlLayer` | | | arguments to this enum variant are incorrect | help: the type constructed contains `config::v1::TomlLayer` due to the type of the argument passed --> cargo-dist/src/init.rs:346:24 | 346 | workspace: Some(meta), | ^^^^^----^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5
no method named `is_empty` found for reference `&config::v1::ci::CiLayer` in the current scope: cargo-dist/src/init.rs#L707
error[E0599]: no method named `is_empty` found for reference `&config::v1::ci::CiLayer` in the current scope --> cargo-dist/src/init.rs:707:48 | 707 | let has_ci = meta.ci.as_ref().map(|ci| !ci.is_empty()).unwrap_or(false); | ^^^^^^^^ method not found in `&CiLayer` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: candidate #1: `axoasset::toml_edit::TableLike` candidate #2: `bitflags::traits::Flags` candidate #3: `gimli::read::reader::Reader` candidate #4: `nix::NixPath` candidate #5: `similar::DiffableStr` candidate #6: `std::iter::ExactSizeIterator`
mismatched types: cargo-dist/src/init.rs#L702
error[E0308]: mismatched types --> cargo-dist/src/init.rs:702:57 | 702 | meta.ci = if ci.is_empty() { None } else { Some(ci) }; | ---- ^^ expected `CiLayer`, found `Vec<CiStyle>` | | | arguments to this enum variant are incorrect | = note: expected struct `config::v1::ci::CiLayer` found struct `std::vec::Vec<config::CiStyle>` help: the type constructed contains `std::vec::Vec<config::CiStyle>` due to the type of the argument passed --> cargo-dist/src/init.rs:702:52 | 702 | meta.ci = if ci.is_empty() { None } else { Some(ci) }; | ^^^^^--^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5
no method named `contains` found for reference `&config::v1::ci::CiLayer` in the current scope: cargo-dist/src/init.rs#L660
error[E0599]: no method named `contains` found for reference `&config::v1::ci::CiLayer` in the current scope --> cargo-dist/src/init.rs:660:30 | 660 | .map(|ci| ci.contains(item)) | ^^^^^^^^ method not found in `&CiLayer` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following traits define an item `contains`, perhaps you need to implement one of them: candidate #1: `bitflags::traits::Flags` candidate #2: `ipnet::ipnet::Contains` candidate #3: `itertools::Itertools` candidate #4: `itertools::Itertools` candidate #5: `itertools::Itertools` candidate #6: `std::ops::RangeBounds`
the method `as_deref` exists for enum `Option<CiLayer>`, but its trait bounds were not satisfied: cargo-dist/src/init.rs#L646
error[E0599]: the method `as_deref` exists for enum `Option<CiLayer>`, but its trait bounds were not satisfied --> cargo-dist/src/init.rs:646:16 | 646 | if meta.ci.as_deref().unwrap_or_default().is_empty() { | ^^^^^^^^ | ::: cargo-dist/src/config/v1/ci/mod.rs:28:1 | 28 | pub struct CiLayer { | ------------------ doesn't satisfy `config::v1::ci::CiLayer: lazy_static::__Deref` | = note: the following trait bounds were not satisfied: `config::v1::ci::CiLayer: lazy_static::__Deref` note: the trait `lazy_static::__Deref` must be implemented --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/deref.rs:136:1
no field `hosting` on type `config::v1::TomlLayer`: cargo-dist/src/init.rs#L546
error[E0609]: no field `hosting` on type `config::v1::TomlLayer` --> cargo-dist/src/init.rs:546:14 | 546 | meta.hosting = Some(args.host.clone()); | ^^^^^^^ unknown field | = note: available fields are: `dist_version`, `dist_url_override`, `dist`, `allow_dirty`, `targets` ... and 6 others
mismatched types: cargo-dist/src/init.rs#L346
error[E0308]: mismatched types --> cargo-dist/src/init.rs:346:29 | 346 | workspace: Some(meta), | ---- ^^^^ expected `DistMetadata`, found `TomlLayer` | | | arguments to this enum variant are incorrect | help: the type constructed contains `config::v1::TomlLayer` due to the type of the argument passed --> cargo-dist/src/init.rs:346:24 | 346 | workspace: Some(meta), | ^^^^^----^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5

Artifacts

Produced during runtime
Name Size
artifacts-plan-dist-manifest
4.19 KB
cargo-dist-cache
8.39 MB