File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -390,12 +390,12 @@ struct MockPackage {
390
390
let name : String
391
391
392
392
/// The current available version of the package.
393
- let version : Version
393
+ let version : Version ?
394
394
395
395
/// The dependencies of the package.
396
396
let dependencies : [ MockDependency ]
397
397
398
- init ( _ name: String , version: Version , dependencies: [ MockDependency ] = [ ] ) {
398
+ init ( _ name: String , version: Version ? , dependencies: [ MockDependency ] = [ ] ) {
399
399
self . name = name
400
400
self . version = version
401
401
self . dependencies = dependencies
@@ -455,7 +455,7 @@ struct MockManifestGraph {
455
455
// Don't recreate repo if it is already there.
456
456
if !exists( repoPath) {
457
457
try makeDirectories ( repoPath)
458
- initGitRepo ( repoPath, tag: package . version. description)
458
+ initGitRepo ( repoPath, tag: package . version? . description ?? " initial " )
459
459
}
460
460
return ( package . name, RepositorySpecifier ( url: repoPath. asString) )
461
461
} )
You can’t perform that action at this time.
0 commit comments