Code Monkey home page Code Monkey logo

Comments (11)

tunniclm avatar tunniclm commented on May 22, 2024 4

Resolved the final issue by injecting a dependency on Kitura-Request 0.7.x before appid-serversdk-swift and now all the tests pass.

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024 1

@rfdickerson We aren't on Kitura 1.7 or Swift 3.1 yet for a number of reasons. We need all our dependencies to be compatible with that environment first. Currently SwiftMetrics is not compatible with Swift 3.1; Kitura-CouchDB and Kitura-Redis do not have a 1.7 version.

Some of these may be resolved very soon, but we need to be stable on 3.0.2 and 1.6 while the transition occurs.

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

There are multiple problems here:

  • SwiftMetrics 0.0.x had a loose dependency on Kitura-WebSocket 0.x (instead of 0.7.x) which was causing Kitura-net 1.7.0 to be pulled in to the dependency tree where other dependencies require Kitura-net 1.6.0 causing a conflict
  • Generated projects that need Kitura-CouchDB pull in 1.x which currently depends on Kitura-net 1.6.x whereas the project also depends on Kitura 1.x which now resolves to 1.7.0 which, in turn, requires Kitura-net 1.7.x causing a conflict

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

SwiftMetrics recently released 1.0.0, moving it out of semver "development" versioning. This update does not have breaking changes compared to the prior version (0.0.23). Today SwiftMetrics 1.0.1 was released to tighten up its dependency on Kitura-WebSocket and therefore resolve the first part of the dependency problem.

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

I don't see an alternative to tightening our dependency on Kitura to 1.6.x for now to fix the second part of the dependency problem.

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

Prospective changes are undergoing Travis testing on PR #156

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

Changes failed because of another issue:

CloudConfiguration 1.x depends on Swift-cfenv 3.x depends on LoggerAPI 1.x resolves to LoggerAPI 1.7.0
Kitura 1.6.x depends on Kitura-net 1.6.x depends on LoggerAPI 1.6.x conflicts

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

Tested moving the Kitura dependency up to the top of Package.swift since in Swift 3.0.2 this would cause LoggerAPI to resolve to 1.6.x before CloudConfiguration dependency is processed. (NOTE: Swift 3.1 moves to phased dependency resolution where this ordering should cease to matter).

This did resolve the LoggerAPI dependency above but now the following issue occurs:

Kitura 1.6.x (1.6.3) depends on Kitura-net 1.6.x (1.6.2)
appid-serversdk-swift 1.x (1.0.0) depends on Kitura-Request 0.x (0.8.0) depends on Kitura-net 1.7.x conflicts

from generator-swiftserver.

rfdickerson avatar rfdickerson commented on May 22, 2024

Just to be clear, we are now migrated fully to:

  • Kitura 1.7
  • Swift 3.1

Leaving behind Swift 3.0.2, right?

from generator-swiftserver.

ianpartridge avatar ianpartridge commented on May 22, 2024

Good news that injecting the dependency works around the problem, but it's not a full fix. We'll need to do a lessons learned on this one.

from generator-swiftserver.

tunniclm avatar tunniclm commented on May 22, 2024

Version 2.0.1 has been tagged and published to npm and should address the dependency graph problems. Please open a new issue if you find any more problems with dependency graph errors.

from generator-swiftserver.

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.