GithubHelp home page GithubHelp logo

Swift Package Manager tag about swifter HOT 7 CLOSED

httpswift avatar httpswift commented on May 8, 2024
Swift Package Manager tag

from swifter.

Comments (7)

cwagdev avatar cwagdev commented on May 8, 2024

+1 not sure if that's the cause for my issue but I am seeing the following

Cloning Packages/swifter
swift-build: The dependency graph could not be satisifed (https://github.com/glock45/swifter.git)

With a Package.swift of:

import PackageDescription

let package = Package(
  name: "MySwiftPackage",
  targets: [],
  dependencies: [
    .Package(url: "https://github.com/glock45/swifter.git", majorVersion: 1)
  ]
)

from swifter.

harlanhaskins avatar harlanhaskins commented on May 8, 2024

It's definitely the cause.

majorVersion: 1 means that it's going to look for a tag called 1.0.0, which this project doesn't have.

You'll need to use the .Package(url: String, _ version: Version) initializer.

The project does have a 1.0.2 tag.
.Package(url: "https://github.com/glock45/swifter.git", Version(1, 0, 2))

But that tag doesn't have Package.swift as it was created in October.

from swifter.

cwagdev avatar cwagdev commented on May 8, 2024

I believe majorVersion: 1 finds the newest 1.x.x version. I was just able to get swift build to pass by forking and creating a 1.0.3 tag on my fork.

import PackageDescription

let package = Package(
  name: "MySwiftPackage",
  targets: [],
  dependencies: [
    .Package(url: "https://github.com/cwagdev/swifter.git", majorVersion: 1)
  ]
)

from swifter.

harlanhaskins avatar harlanhaskins commented on May 8, 2024

Ooh, really? I thought it found the lowest version! That's great. Thanks!

from swifter.

NSBrianWard avatar NSBrianWard commented on May 8, 2024

Just curious if this is on the plan for resolution in the near future. Currently I'm on the fork, but I'd love to jump back in the main branch ASAP. Thanks!

from swifter.

julien-c avatar julien-c commented on May 8, 2024

Planning on tagging a release later today, once I merge a main.swift example file for Linux.

from swifter.

damian-kolakowski avatar damian-kolakowski commented on May 8, 2024

@harlanhaskins @cwagdev @NSBrianWard @julien-c
We got a new release 1.0.5.

from swifter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.