@@ -274,12 +274,12 @@ fn registry_and_git_dep_works() {
274274 Package :: new ( "bar" , "0.0.1" ) . alternative ( true ) . publish ( ) ;
275275
276276 p. cargo ( "check" )
277- . with_status ( 101 )
278277 . with_stderr_data ( str![ [ r#"
279- [ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
280-
281- Caused by:
282- dependency (bar) specification is ambiguous. Only one of `git` or `registry` is allowed.
278+ [UPDATING] git repository `[ROOTURL]/bar`
279+ [LOCKING] 1 package to latest compatible version
280+ [CHECKING] bar v0.0.1 ([ROOTURL]/bar#[..])
281+ [CHECKING] foo v0.0.1 ([ROOT]/foo)
282+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
283283
284284"# ] ] )
285285 . run ( ) ;
@@ -720,15 +720,62 @@ fn publish_with_git_and_registry_dep() {
720720 Package :: new ( "bar" , "0.0.1" ) . alternative ( true ) . publish ( ) ;
721721
722722 p. cargo ( "publish --registry alternative" )
723- . with_status ( 101 )
724723 . with_stderr_data ( str![ [ r#"
725- [ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
726-
727- Caused by:
728- dependency (bar) specification is ambiguous. Only one of `git` or `registry` is allowed.
724+ [UPDATING] `alternative` index
725+ [PACKAGING] foo v0.0.1 ([ROOT]/foo)
726+ [UPDATING] `alternative` index
727+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
728+ [VERIFYING] foo v0.0.1 ([ROOT]/foo)
729+ [DOWNLOADING] crates ...
730+ [DOWNLOADED] bar v0.0.1 (registry `alternative`)
731+ [COMPILING] bar v0.0.1 (registry `alternative`)
732+ [COMPILING] foo v0.0.1 ([ROOT]/foo/target/package/foo-0.0.1)
733+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
734+ [UPLOADING] foo v0.0.1 ([ROOT]/foo)
735+ [UPLOADED] foo v0.0.1 to registry `alternative`
736+ [NOTE] waiting for foo v0.0.1 to be available at registry `alternative`
737+ [HELP] you may press ctrl-c to skip waiting; the crate should be available shortly
738+ [PUBLISHED] foo v0.0.1 at registry `alternative`
729739
730740"# ] ] )
731741 . run ( ) ;
742+
743+ validate_alt_upload (
744+ r#"{
745+ "authors": [],
746+ "badges": {},
747+ "categories": [],
748+ "deps": [
749+ {
750+ "default_features": true,
751+ "features": [],
752+ "kind": "normal",
753+ "name": "bar",
754+ "optional": false,
755+ "target": null,
756+ "version_req": "^0.0.1"
757+ }
758+ ],
759+ "description": null,
760+ "documentation": null,
761+ "features": {},
762+ "homepage": null,
763+ "keywords": [],
764+ "license": null,
765+ "license_file": null,
766+ "links": null,
767+ "name": "foo",
768+ "readme": null,
769+ "readme_file": null,
770+ "repository": null,
771+ "homepage": null,
772+ "documentation": null,
773+ "rust_version": null,
774+ "vers": "0.0.1"
775+ }"# ,
776+ "foo-0.0.1.crate" ,
777+ & [ "Cargo.lock" , "Cargo.toml" , "Cargo.toml.orig" , "src/main.rs" ] ,
778+ ) ;
732779}
733780
734781#[ cargo_test]
0 commit comments