Comments (11)
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.
@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.
There are multiple problems here:
- SwiftMetrics 0.0.x had a loose dependency on Kitura-WebSocket
0.x
(instead of0.7.x
) which was causing Kitura-net1.7.0
to be pulled in to the dependency tree where other dependencies require Kitura-net1.6.0
causing a conflict - Generated projects that need Kitura-CouchDB pull in
1.x
which currently depends on Kitura-net1.6.x
whereas the project also depends on Kitura1.x
which now resolves to1.7.0
which, in turn, requires Kitura-net1.7.x
causing a conflict
from generator-swiftserver.
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.
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.
Prospective changes are undergoing Travis testing on PR #156
from generator-swiftserver.
Changes failed because of another issue:
CloudConfiguration 1.x depends on Swift-cfenv
3.x
depends on LoggerAPI1.x
resolves to LoggerAPI1.7.0
Kitura1.6.x
depends on Kitura-net1.6.x
depends on LoggerAPI1.6.x
conflicts
from generator-swiftserver.
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-net1.6.x
(1.6.2)
appid-serversdk-swift1.x
(1.0.0) depends on Kitura-Request0.x
(0.8.0) depends on Kitura-net1.7.x
conflicts
from generator-swiftserver.
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.
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.
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)
- Please consider an alternative directory structure HOT 2
- Update docker commands in generated README
- Spaces or underscores in project folder name causes KituraNet to fail when building HOT 1
- SDKgen tests are failing HOT 1
- IBM Cloud Auto-Scaling service fails to initialize HOT 2
- Default URL for redis service doesn't use the standard redis port
- init option handles hyphen in project name incorrectly HOT 1
- Failing with Swift 4.0.3 HOT 4
- Version 10 of node.js has been released
- unsure which node6.x Node.js 8.x Node.js 10 version will work ? HOT 2
- Update generator to use Codable
- An in-range update of debug is breaking the build 🚨 HOT 4
- Codable routes not generated from example swagger HOT 1
- Generator should support Swift 4.2
- An in-range update of bluebird is breaking the build 🚨 HOT 3
- Kitura Create doesn't work with node 12 HOT 2
- bluemix-simple-http-client-swift 0.9.0 doesn't support swift 5 HOT 2
- An in-range update of generator-ibm-usecase-enablement is breaking the build 🚨 HOT 3
- An in-range update of handlebars is breaking the build 🚨 HOT 18
- An in-range update of codecov is breaking the build 🚨 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-swiftserver.