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

[SR-10100] Product dependency not found after a package edit. #4725

Open
pushkarnk opened this issue Mar 13, 2019 · 0 comments
Open

[SR-10100] Product dependency not found after a package edit. #4725

pushkarnk opened this issue Mar 13, 2019 · 0 comments
Labels

Comments

@pushkarnk
Copy link
Collaborator

Previous ID SR-10100
Radar None
Original Reporter @pushkarnk
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 602601553f7f876bf7cc85f9c6e84950

Issue Description:

I need help with what appears like a changed behavior with Swift 5. In the repro example below, package `Kitura-NIO` is a dependency of `Kitura`. I first build Kitura, edit the Kitura-NIO dependency to point to a local copy and then rebuild Kitura. The rebuilding step succeeds with Swift 4.2.1 but fails with Swift 5. Here are the repro steps:

Spte 1: git clone https://github.com/IBM-Swift/Kitura-NIO -b development && cd Kitura-NIO

Step 2: swift build

Step 3: cd .. && git clone https://github.com/IBM-Swift/Kitura && cd Kitura

Step 4: export KITURA_NIO=1

Step 5: swift build

Step 6: swift package edit Kitura-NIO --path ../Kitura-NIO/

Step 7: swift build

The final step fails with this message:

'Kitura-NIO' /Kitura-NIO: error: product dependency 'NIOSSL' not found

An important piece of info here is that the set of dependencies of the Kitura-NIO before and after the edit is different.

Kitura-NIO dependencies before the edit:
dependencies:["NIO", "NIOFoundationCompat", "NIOHTTP1", "NIOOpenSSL", "SSLService", "LoggerAPI", "NIOWebSocket", "CLinuxHelpers"]

Kitura-NIO dependencies after the edit:
dependencies:["NIO", "NIOFoundationCompat", "NIOHTTP1", "NIOSSL", "SSLService", "LoggerAPI", "NIOWebSocket", "CLinuxHelpers"]

Environment details:

{{root@1cbe874cd748:/Kitura./swift5/usr/bin/swift --version
Swift version 5.0-dev (LLVM 3207a50965, Clang 107de882f4, Swift 4d6e741e32)
Target: x86_64-unknown-linux-gnu

root@1cbe874cd748:/Kitura# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty}}

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants