@@ -53,6 +53,10 @@ pub struct SourceBuildSpec {
5353 /// The location of the source code to build.
5454 pub source : PinnedSourceSpec ,
5555
56+ /// Optional path to lock file for reading/writing package_build_source entries
57+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
58+ pub pinned_build_source : Option < PinnedSourceSpec > ,
59+
5660 /// The channel configuration to use when resolving metadata
5761 pub channel_config : ChannelConfig ,
5862
@@ -87,10 +91,6 @@ pub struct SourceBuildSpec {
8791 /// The protocols that are enabled for this source
8892 #[ serde( skip_serializing_if = "crate::is_default" ) ]
8993 pub enabled_protocols : EnabledProtocols ,
90-
91- /// Optional path to lock file for reading/writing package_build_source entries
92- #[ serde( skip_serializing_if = "Option::is_none" ) ]
93- pub pinned_build_source : Option < PinnedSourceSpec > ,
9494}
9595
9696#[ derive( Debug , Clone ) ]
@@ -860,21 +860,6 @@ pub enum SourceBuildError {
860860
861861 #[ error( "the package does not contain a valid subdir" ) ]
862862 ConvertSubdir ( #[ source] ConvertSubdirError ) ,
863-
864- #[ error( "failed to read lock file {}: {}" , . 0 . display( ) , . 1 ) ]
865- LockFileError ( PathBuf , String ) ,
866-
867- #[ error( "invalid git revision '{}': {}" , . 0 , . 1 ) ]
868- InvalidGitRev ( String , String ) ,
869-
870- #[ error( "failed to write lock file {}: {}" , . 0 . display( ) , . 1 ) ]
871- LockFileWriteError ( PathBuf , std:: io:: Error ) ,
872-
873- #[ error( "unsupported source type: {}" , . 0 ) ]
874- UnsupportedSourceType ( String ) ,
875-
876- #[ error( "lock file usage violation: {0}" ) ]
877- LockFilePolicyViolation ( String ) ,
878863}
879864
880865impl From < DependenciesError > for SourceBuildError {
0 commit comments