Closed cfiken closed 3 years ago
I cannot build swaggen by SPM or Mint because of dependency error. I noticed that it actually failed in the repository as below:
$ git clone git@github.com:yonaskolb/SwagGen.git; cd SwagGen $ swift package resolve Updating https://github.com/stencilproject/Stencil.git Updating https://github.com/yonaskolb/JSONUtilities.git Updating https://github.com/SwiftGen/StencilSwiftKit.git Updating https://github.com/jakeheis/SwiftCLI Updating https://github.com/kylef/Spectre.git Updating https://github.com/jpsim/Yams.git Updating https://github.com/kylef/PathKit.git Updating https://github.com/onevcat/Rainbow.git error: dependency graph is unresolvable; found these conflicting requirements: Dependencies: https://github.com/yonaskolb/JSONUtilities.git @ 4.1.0..<5.0.0
This is because I use swiftenv and .swift-version specified Swift 4.1. Resolving succeeded when I modify .swift-version with Swift 5.2.
.swift-version
$ echo '5.2' >| .swift-version $ swift package resolve Updating https://github.com/SwiftGen/StencilSwiftKit.git Updating https://github.com/kylef/Spectre.git Updating https://github.com/jpsim/Yams.git Updating https://github.com/jakeheis/SwiftCLI Updating https://github.com/yonaskolb/JSONUtilities.git Updating https://github.com/onevcat/Rainbow.git Updating https://github.com/stencilproject/Stencil.git Updating https://github.com/kylef/PathKit.git Cloning https://github.com/stencilproject/Stencil.git Resolving https://github.com/stencilproject/Stencil.git at 0.13.1 Cloning https://github.com/jakeheis/SwiftCLI Resolving https://github.com/jakeheis/SwiftCLI at 5.3.3 Cloning https://github.com/kylef/PathKit.git Resolving https://github.com/kylef/PathKit.git at 0.9.2 Cloning https://github.com/yonaskolb/JSONUtilities.git Resolving https://github.com/yonaskolb/JSONUtilities.git at 4.2.0 Cloning https://github.com/SwiftGen/StencilSwiftKit.git Resolving https://github.com/SwiftGen/StencilSwiftKit.git at 2.7.2 Cloning https://github.com/kylef/Spectre.git Resolving https://github.com/kylef/Spectre.git at 0.9.0 Cloning https://github.com/onevcat/Rainbow.git Resolving https://github.com/onevcat/Rainbow.git at 3.1.5 Cloning https://github.com/jpsim/Yams.git Resolving https://github.com/jpsim/Yams.git at 1.0.2
https://github.com/yonaskolb/SwagGen/pull/247 was merged!
I cannot build swaggen by SPM or Mint because of dependency error. I noticed that it actually failed in the repository as below:
This is because I use swiftenv and
.swift-version
specified Swift 4.1. Resolving succeeded when I modify.swift-version
with Swift 5.2.