Skip to content

Cannot resolve dependencies on Ubuntu 20.04 + swift 5.3 #22

@zeionara

Description

@zeionara

The command I execute:

git clone git@github.com:PerfectlySoft/PerfectTemplate.git && cd PerfectTemplate && swift run

The output I observe:

Cloning into 'PerfectTemplate'...
remote: Enumerating objects: 285, done.
remote: Total 285 (delta 0), reused 0 (delta 0), pack-reused 285
Receiving objects: 100% (285/285), 61.98 KiB | 453.00 KiB/s, done.
Resolving deltas: 100% (143/143), done.
Fetching https://github.com/PerfectlySoft/Perfect-HTTPServer.git
Cloning https://github.com/PerfectlySoft/Perfect-HTTPServer.git
Resolving https://github.com/PerfectlySoft/Perfect-HTTPServer.git at 3.0.23
Updating https://github.com/PerfectlySoft/Perfect-HTTPServer.git
Fetching https://github.com/PerfectlySoft/Perfect-CZlib-src.git
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
Fetching https://github.com/PerfectlySoft/Perfect-Net.git
Cloning https://github.com/PerfectlySoft/Perfect-HTTP.git
Resolving https://github.com/PerfectlySoft/Perfect-HTTP.git at 3.3.0
Cloning https://github.com/PerfectlySoft/Perfect-Net.git
Resolving https://github.com/PerfectlySoft/Perfect-Net.git at 3.3.0
Cloning https://github.com/PerfectlySoft/Perfect-CZlib-src.git
Resolving https://github.com/PerfectlySoft/Perfect-CZlib-src.git at 0.0.4
error: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again

But if I delete "PerfectHTTPServer" from the target dependency list and replace all the code in main.swift with a simple print, I get only warning:

warning: dependency 'PerfectHTTPServer' is not used by any target

So there should be a mistake somewhere in dependencies declarations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions