yonaskolb / Mint

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

Update failed #133

Open raptorxcz opened 5 years ago

raptorxcz commented 5 years ago

Hi,

I tried to update Mint from 0.11.3 to 0.12.0. Instead of update I get error:

mint install yonaskolb/mint@0.12.0
🌱  Cloning mint 0.12.0
🌱  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))

xcode-select was set to Xcode 10.2

yonaskolb commented 5 years ago

Because Mint 0.11.3 can't parse the package dump when compiling in Swift 5 this will fail. You will have to install Mint using another method like homebrew, github release, or from source

raptorxcz commented 5 years ago

It is one time issue or this going to happen every major Swift / Xcode release?