Failing with Swift 4.0.3
kubacode opened this issue · 4 comments
Hi there,
I'm attempting to init a Kitura project, however the init command is failing - I think I've narrowed the issue down to being caused by the Swift Server Generator. The output I get is:
create .swiftservergenerator-project
create .gitignore
create .swift-version
create LICENSE
create Sources/Application/InitializationError.swift
create Sources/Application/Application.swift
create spec.json
create Tests/ApplicationTests/RouteTests.swift
create Tests/LinuxMain.swift
create Sources/Application/Metrics.swift
create Sources/Application/Routes/HealthRoutes.swift
create README.md
create Sources/Application/Routes/.keep
create Sources/HelloKitura/main.swift
create Package.swift
create cli-config.yml
create Dockerfile
create Dockerfile-tools
create .dockerignore
create manifest.yml
create .cfignore
create .bluemix/toolchain.yml
create .bluemix/deploy.json
create .bluemix/scripts/container_build.sh
create .bluemix/scripts/kube_deploy.sh
create .bluemix/pipeline.yml
create chart/hellokitura/Chart.yaml
create chart/hellokitura/templates/deployment.yaml
create chart/hellokitura/templates/service.yaml
create chart/hellokitura/templates/hpa.yaml
create chart/hellokitura/templates/istio.yaml
create chart/hellokitura/templates/basedeployment.yaml
create chart/hellokitura/values.yaml
Apple Swift version 4.0.3 (swift-4.0.3-RELEASE)
Target: x86_64-apple-macosx10.9
Fetching https://github.com/IBM-Swift/Kitura.git
Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/IBM-Swift/CloudEnvironment.git
Fetching https://github.com/IBM-Swift/Health.git
Fetching https://github.com/RuntimeTools/SwiftMetrics.git
Fatal error: 'try!' expression unexpectedly raised an error: terminated(129): git -C /Users/Jacob/Code/HelloKitura/.build/repositories/CloudEnvironment.git-4296862266651677051 tag -l: file /Users/buildnode/jenkins/workspace/oss-swift-4.0-package-osx/swift/stdlib/public/core/ErrorType.swift, line 181
swift build command completed
Updating https://github.com/IBM-Swift/Kitura.git
Updating https://github.com/RuntimeTools/SwiftMetrics.git
Updating https://github.com/IBM-Swift/Health.git
Updating https://github.com/IBM-Swift/CloudEnvironment.git
Updating https://github.com/IBM-Swift/HeliumLogger.git
error: terminated(129): git -C /Users/Jacob/Code/HelloKitura/.build/repositories/Kitura.git-6522211175291160341 remote update -p
error: product dependency 'Kitura' not found
error: product dependency 'CloudEnvironment' not found
error: product dependency 'SwiftMetrics' not found
error: product dependency 'Health' not found
error: product dependency 'Kitura' not found
error: product dependency 'HeliumLogger' not found
error: product dependency 'Kitura' not found
error: product dependency 'HeliumLogger' not found
Error swiftserver --init
swift package generate-xcodeproj command completed with errors
Interestingly, the generator states that the swift build command completed
(to me indicating that it has successfully completed), when in fact the command has failed.
Any chance someone would be able to provide assistance in looking into what could be causing this failure?
@kubacode What generator version is reported in the last line of your README.md
file?
Hey @EnriqueL8, v4.5.1
is reported in the README.md
file. I notice that the latest version of the generator is 4.6.0
so updated to the latest version, removed the project and re-ran the kitura init
command and I am still seeing the same result (with v4.6.0
now reported in the README.md
file).
@kubacode Are you still seeing this problem with 4.0.3? We are preparing a release that produces a 4.1 application.
Closing reopen if needed.