{"action":"closed","issue":{"url":"https://api.github.com/repos/bignerdranch/Deferred/issues/166","repository_url":"https://api.github.com/repos/bignerdranch/Deferred","labels_url":"https://api.github.com/repos/bignerdranch/Deferred/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/bignerdranch/Deferred/issues/166/comments","events_url":"https://api.github.com/repos/bignerdranch/Deferred/issues/166/events","html_url":"https://github.com/bignerdranch/Deferred/issues/166","id":200433882,"number":166,"title":"Swift Package Manager support","user":{"login":"mdmathias","id":4029922,"avatar_url":"https://avatars.githubusercontent.com/u/4029922?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmathias","html_url":"https://github.com/mdmathias","followers_url":"https://api.github.com/users/mdmathias/followers","following_url":"https://api.github.com/users/mdmathias/following{/other_user}","gists_url":"https://api.github.com/users/mdmathias/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmathias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmathias/subscriptions","organizations_url":"https://api.github.com/users/mdmathias/orgs","repos_url":"https://api.github.com/users/mdmathias/repos","events_url":"https://api.github.com/users/mdmathias/events{/privacy}","received_events_url":"https://api.github.com/users/mdmathias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-12T17:42:59Z","updated_at":"2017-01-12T18:55:55Z","closed_at":"2017-01-12T18:55:55Z","body":"If following [the docs](https://bignerdranch.github.io/Deferred/getting-started.html), you will end up with a `Package.swift` like so:\r\n\r\n```swift\r\nimport PackageDescription\r\n\r\nlet package = Package(\r\n    name: \"My Extremely Nerdy App\",\r\n    dependencies: [\r\n        .Package(url: \"https://github.com/bignerdranch/Deferred.git\", majorVersion: 3),\r\n    ]\r\n)\r\n```\r\n\r\nThen, using `swift package fetch` in Terminal.app, you will see this error:\r\n\r\n> error: The dependency graph could not be satisfied. The package (git@github.com:bignerdranch/Deferred.git) with version tag in range (3.0.0..<3.9223372036854775807.9223372036854775807) is not found. Found tags ([2.0.0-rc.1, 2.0.0, 2.2.0-rc.1, 2.2.0, 2.2.1, 3.0.0-beta.1, 3.0.0-beta.2, 3.0.0-beta.3, 3.0.0-rc.1, 3.0.0-rc.2])\r\n\r\nOkay...so I will explicitly specify a `Version` that (I think) has a resolvable release tag.\r\n\r\n```swift\r\nimport PackageDescription\r\n\r\nlet package = Package(\r\n    name: \"My Extremely Nerdy App\",\r\n    dependencies: [\r\n        .Package(url: \"https://github.com/bignerdranch/Deferred.git\", Version(2,2,1)),\r\n    ]\r\n)\r\n```\r\n\r\nBut then I get:\r\n\r\n> error: the package has an unsupported layout, unexpected source file(s) found: /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/BlockCancellableTaskTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/DeferredTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/ExistentialFutureTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/Fixtures.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/FutureCustomExecutorTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/IgnoringFutureTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/LockProtectedTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/ReadWriteLockTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/ResultRecoveryTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/TaskAccumulatorTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/TaskResultTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/TaskTests.swift, /Users/DubbaDubs/Documents/BNR Books/AdvancedSwift/Networking/Deferred/Solution/SWAPI/Packages/Deferred-2.2.1/Tests/VoidResultTests.swift\r\nfix: move the file(s) inside a module\r\n\r\nI think the tests for Deferred need to have a different directory structure. Right now it is, `.../Tests/allOfTheTests.swift`. I believe it will need to be `.../Tests/DeferredTests/allOfTheTests.swift`.\r\n\r\nThis is the structure on master right now, which I imagine is reflected in all of the 3.0.0 pre-releases as well."}}
{"actor":{"display_login":"zwaldowski"}}