vapor-community / migrator

A package for updating from Vapor 1 to Vapor 2
6 stars 1 forks source link

Hangs on installing the dependencies from this project #11

Open richy486 opened 6 years ago

richy486 commented 6 years ago

Trying to use this to update a 1.5 project to 2.x.

Project hangs when doing vapor update, tried with vapor update --verbose and it seems to hang after these messages:

Updating https://github.com/vapor/leaf-provider.git
Updating https://github.com/vapor/fluent-provider.git

Same result when using swift package update

My Package.swift file

import PackageDescription

let package = Package(
    name: "XXX",
    dependencies: [
        .Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 5),
        .Package(url: "https://github.com/vapor/jwt.git", majorVersion: 0, minor: 6),
        .Package(url: "https://github.com/vapor/postgresql-provider", majorVersion: 1, minor: 1),
        .Package(url: "https://github.com/vapor/migrator.git", majorVersion: 1)
    ],
    exclude: [
        "Config",
        "Database",
        "Localization",
        "Public",
        "Resources",
    ]
)

Using Swift 3.1.1 as stated in my .swift-version file

richy486 commented 6 years ago

Also trying swift build --verbose appears to get stuck repeating:

git -C XXX/.build/repositories/core.git-9210800844849382486 rev-parse --verify '1.1.2^{commit}'
git -C XXX/.build/repositories/core.git-9210800844849382486 rev-parse --verify '661a105e25a8d84cb61f268c0b6ed85834493761^{tree}'
git -C XXX/.build/repositories/core.git-9210800844849382486 ls-tree 6a73687b586ba5b828a53a097f12ebcd438e1373
git -C XXX/.build/repositories/core.git-9210800844849382486 cat-file -p 966645701ad77a0cf448b183e8c67ef2118a46da
git -C XXX/.build/repositories/socks.git--8001262774462276871 rev-parse --verify '1.2.7^{commit}'
git -C XXX/.build/repositories/socks.git--8001262774462276871 rev-parse --verify '0e39b4c53b213888284821348d7c6b000ee836da^{tree}'
git -C XXX/.build/repositories/socks.git--8001262774462276871 ls-tree 7d67f8578ef217ad07f48b03e7de424df7eb9f20
git -C XXX/.build/repositories/socks.git--8001262774462276871 cat-file -p 3ce78569d616fee300b485de2b45e5ac1ba16f98

but with more commits for those two git repos

This also happens when I build a version of migrator without the two dependencies.

0xTim commented 6 years ago

I'm guessing this is because of the pre-release identifiers being used in the Package.swift - you could try forking this and updating the dependencies