evandcoleman / Scipio

A package manager agnostic dependency management tool for Swift
MIT License
53 stars 5 forks source link

Cannot cache Alamofire: Cannot initialize Kind from invalid String value remoteSourceControl #34

Open mikeger opened 2 years ago

mikeger commented 2 years ago

I'm currently working on porting my project to use Scipio, however even the most basic config file cannot be used.

Example

name: Contrib

deploymentTarget:
  iOS: "11.0"

cache:
  local:
    path: Contrib

packages:
  - name: Alamofire
    url: https://github.com/Alamofire/Alamofire
    branch: 5.4.1

Result:

scipio
No "base" settings found
No "debug config" settings found
No "release config" settings found
[17:16:16]: 📦  Resolving package dependencies...
[17:16:16]: Resolve Package Graph

[17:16:16]: 🧮  Loading Swift packages...
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "object", intValue: nil), CodingKeys(stringValue: "dependencies", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "packageRef", intValue: nil), CodingKeys(stringValue: "kind", intValue: nil)], debugDescription: "Cannot initialize Kind from invalid String value remoteSourceControl", underlyingError: nil))

Additional information

mikeger commented 2 years ago

@evandcoleman if you have an idea, would be great. Otherwise, please point in the right direction so I can investigate the issue myself.

evandcoleman commented 2 years ago

This is a known issue. It's due to changes in the Swift package spec that Scipio doesn't yet understand. Unfortunately, life hasn't given me much opportunity to work on this lately, but I'll try to prioritize getting an update pushed!