Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in dependencies #29

Closed
califrench opened this issue Oct 11, 2016 · 1 comment
Closed

Error in dependencies #29

califrench opened this issue Oct 11, 2016 · 1 comment

Comments

@califrench
Copy link

When I try importing Regex with the following dependency in my project, I'm getting different contents for the Package.swift file:

//In my own Package.swift file
    ...
    .Package(url: "https://github.com/crossroadlabs/Regex.git", majorVersion: 0),
    ...

Contents of the Regex/Package.swift I'm getting:

import PackageDescription

let package = Package(
    name: "Regex",
    targets: [Target(name: "Regex")],
    dependencies: [.Package(url: "https://github.com/crossroadlabs/Boilerplate.git", majorVersion: 0, minor: 2)]
)

Instead of

import PackageDescription

let package = Package(
    name: "Regex",
    targets: [Target(name: "Regex")],
    dependencies: [.Package(url: "https://github.com/crossroadlabs/Boilerplate.git", Version(1, 0, 0, prereleaseIdentifiers: ["alpha", "1"]))],
    exclude: ["Carthage"]
)

What's odd is that SPM is resolving Regex 0.8.0 but with different contents than this repo.
The issue is that Boilerplate depends on Result and they have both been updated to support Swift 3, but the version of Regex I'm getting is relying on a deprecated version of Boilerplate.

@dileping
Copy link
Member

dileping commented Nov 4, 2016

@califrench Try to use new version 1.0.0-alpha.1 which supports Swift 3.0 and has no Boilerplate dependency.

@dileping dileping closed this as completed Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants