carton icon indicating copy to clipboard operation
carton copied to clipboard

Root manifest not found when trying to run carton

Open jankaltoun opened this issue 3 years ago • 3 comments

Hello, when trying to execute anything with Carton, I'm getting the following error. Do you have any idea what could be wrong? 🙂

 ✘ jankaltoun@jan-kaltoun  ~/Code/Personal/Swift  carton dev
Polyfill integrity verified: /Users/jankaltoun/.carton/static/dev.js
Inferring basic settings...
- swift executable: /Users/jankaltoun/.carton/sdk/wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a/usr/bin/swift
Swift version 5.3-dev (LLVM b54b6b832e, Swift 4bb1458ec4)
Target: x86_64-apple-darwin19.5.0
Parsing package manifest: /Users/jankaltoun/.carton/sdk/wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a/usr/bin/swift package dump-package
Error: Process failed with non-zero exit status and following error output:
error: root manifest not found

jankaltoun avatar Jul 09 '20 11:07 jankaltoun

Hi @jankaltoun, thanks for reporting this issue. Are you executing carton dev from a directory that has Package.swift in it? Currently carton is only able to build SwiftPM packages with executable products in them, so you have to run its commands from the root package directory, which has a Package.swift file in it that describes such product.

MaxDesiatov avatar Jul 09 '20 18:07 MaxDesiatov

Well, that was easy! The directory was indeed the problem. Thank you! 🙂

jankaltoun avatar Jul 09 '20 20:07 jankaltoun

No problem at all! I'll keep the issue open until carton is able to detect that Package.swift is missing in the current directory and the error message is improved. 🙂

MaxDesiatov avatar Jul 09 '20 20:07 MaxDesiatov