evandcoleman / Scipio

A package manager agnostic dependency management tool for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mikeger opened this issue · comments

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

  • Apple Silicon
  • macOS 13.0
  • Xcode 14.1
  • scipio 0.2.8 (tool reporting 0.2.5)

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

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!