yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.28k stars 122 forks source link

Package.swift parsing errors with Xcode 10.2 #129

Closed Jeehut closed 5 years ago

Jeehut commented 5 years ago

I've just upgraded my tool [BartyCrouch]() to Swift 5, including updating the manifest. Now when I try to install it via Mint:

mint install Flinesoft/BartyCrouch

It fails with the following error output:

🌱  Finding latest version of BartyCrouch
🌱  Cloning BartyCrouch 4.0.1
🌱  Resolving package
🌱  Failed to read Package.swift file:
Couldn't decode package dump:
keyNotFound(CodingKeys(stringValue: "product_type", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "products", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"product_type\", intValue: nil) (\"product_type\").", underlyingError: nil))

Running swift build -c -release locally doesn't give me any errors.

stefanomondino commented 5 years ago

Same issue here with our Murray.

yonaskolb commented 5 years ago

Fixed in 0.12.0