Vapor 4: Heroku push fails with "no Package.swift manifest for version 4.5.1"

I'm trying to deploy ma app to heroku with the following log:

remote: -----> Swift app detected
remote: -----> Using Swift 5.2.1 (from .swift-version file)
remote: -----> Using built-in clang (Swift 5.2.1)
remote: -----> Installing swiftenv
remote: -----> Installing Swift 5.2.1
remote: Downloading https://swift.org/builds/swift-5.2.1-release/ubuntu1804/swift-5.2.1-RELEASE/swift-5.2.1-RELEASE-ubuntu18.04.tar.gz
remote: /tmp/swiftenv-5.2.1- ~/tmp/buildpacks/8bc2564c47019ec2110317b4b610e6b7742649f0c6de547e3ed684120dba03bbdd0601a741c56fd89112828c6e4815748582d14f62a88bc96696ec2a79912b95
remote: % Total % Received % Xferd Average Speed Time Time Time Current
remote: Dload Upload Total Spent Left Speed
remote: 100 358M 100 358M 0 0 7952k 0 0:00:46 0:00:46 --:--:-- 8841k
remote: ~/tmp/buildpacks/8bc2564c47019ec2110317b4b610e6b7742649f0c6de547e3ed684120dba03bbdd0601a741c56fd89112828c6e4815748582d14f62a88bc96696ec2a79912b95
remote: 5.2.1 has been installed.
remote: -----> Building package (release configuration)
remote: /tmp/build_881ab74fb71ec8860b464e5d9ffe6908/.build/checkouts/vapor: error: https://github.com/vapor/vapor.git has no Package.swift manifest for version 4.5.1
remote: /tmp/build_881ab74fb71ec8860b464e5d9ffe6908/.build/checkouts/leaf: error: https://github.com/vapor/leaf.git has no Package.swift manifest for version 4.0.0-rc.1.2
remote: /tmp/build_881ab74fb71ec8860b464e5d9ffe6908/.build/checkouts/fluent: error: https://github.com/vapor/fluent.git has no Package.swift manifest for version 4.0.0-rc.2.2
remote: /tmp/build_881ab74fb71ec8860b464e5d9ffe6908/.build/checkouts/fluent-mysql-driver: error: https://github.com/vapor/fluent-mysql-driver.git has no Package.swift manifest for version 4.0.0-rc.1.3
remote: ! Push rejected, failed to compile Swift app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to foenserver.
remote:

My dependencies in Package.swift are:

dependencies: [
    // 💧 A server-side Swift web framework.
    .package(url: "https://github.com/vapor/vapor.git", from: "4.3.0"),
    .package(url: "https://github.com/vapor/leaf.git", from: "4.0.0-rc"),
    .package(url: "https://github.com/vapor/fluent.git", from: "4.0.0-rc"),
    .package(url: "https://github.com/vapor/fluent-mysql-driver.git", from: "4.0.0-rc")
],

Everything is running great locally. I've tried removing Package.resolved and .build folder, but the issue still persists. Thank you

Have you checked in your .build directory? If so, that's going to cause problems and you need to make sure it's removed from the repo you push

It could be a GH network wobble, those happen from time to time

1 Like

Thanks for your help! I've seen you on many forums providing useful advices. In my case the .build folder has been commited. Everything is up and running now so thanks again

Terms of Service

Privacy Policy

Cookie Policy