Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI-Server dependency not picked up #2551

Closed
finestructure opened this issue Aug 12, 2023 · 1 comment · Fixed by SwiftPackageIndex/PackageList-Validator#45
Closed

SPI-Server dependency not picked up #2551

finestructure opened this issue Aug 12, 2023 · 1 comment · Fixed by SwiftPackageIndex/PackageList-Validator#45

Comments

@finestructure
Copy link
Member

We are using SwiftPM as a dependency in SPI-Server but it's not being picked up by our nightly job.

The error is:

Checking dependencies (1 packages) ...
Dependencies for https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server ...
ERROR: NSError: Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "relative", intValue: 1), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "dependencies", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "sourceControl", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "location", intValue: nil), CodingKeys(stringValue: "remote", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"relative\", intValue: 1) (\"relative\").", underlyingError: nil))
@finestructure
Copy link
Member Author

What's funny is that this was a bug but I only noticed, because I couldn't find SwiftPM in the package index. This morning I was baffled that the nightly didn't pick it up and dug through the logs. We're now correctly finding SPI's dependencies:

Dependencies for https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server.git ...
  - https://github.com/JohnSundell/Ink.git
  - https://github.com/swift-server-community/SwiftPrometheus.git
  - https://github.com/SwiftPackageIndex/DependencyResolution.git
  - https://github.com/SwiftPackageIndex/SPIManifest.git
  - https://github.com/SwiftPackageIndex/SemanticVersion.git
  - https://github.com/apple/swift-package-manager.git
  - https://github.com/dankinsoid/VaporToOpenAPI.git
  - https://github.com/pointfreeco/swift-custom-dump.git
  - https://github.com/pointfreeco/swift-parsing.git
  - https://github.com/pointfreeco/swift-snapshot-testing.git
  - https://github.com/scinfu/SwiftSoup.git
  - https://github.com/soto-project/soto.git
  - https://github.com/vapor/fluent-postgres-driver.git
  - https://github.com/vapor/fluent.git
  - https://github.com/vapor/vapor.git

Turns out SwiftPM has been in the index since May 30, 2020. I don't know what I was doing that I couldn't find it 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant