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
let res = match(opt_index_or_registry, registry_is_specified_by_any_package){
808
+
// both `package.publish` and `--index` or `--registry` are specified
809
+
(Some(opt_reg_or_index),true) => {
810
+
validate_registry(pkgs,Some(&opt_reg_or_index))?;
811
+
812
+
match opt_reg_or_index {
813
+
r @ RegistryOrIndex::Registry(_) => Some(r),
814
+
r @ RegistryOrIndex::Index(_) => {
815
+
opts.gctx.shell().warn(r#"`--index` will ignore registries set by `package.publish` in Cargo.toml, and may cause unexpected push to prohibited registry
816
+
help: use `--registry` instead or set `publish = true` in Cargo.toml to suppress this warning"#)?;
817
+
818
+
Some(r)
819
+
}
820
+
}
821
+
}
822
+
// only `package.publish` section
823
+
(None,true) => {
824
+
let registry_or_index = super::infer_registry(pkgs)?;
0 commit comments