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

swift package show-dependencies taking inordinate amount of time with Xcode 16 toolchain #8102

Open
1 task done
brianmichel opened this issue Nov 5, 2024 · 1 comment
Labels

Comments

@brianmichel
Copy link

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

We use swift package show-dependencies --disable-automatic-resolution --multiroot-data-file ./App.xcworkspace --scratch-path path/to/checked/out/packages to parse warnings and add them to github prs. Starting with Xcode 16 this command now takes roughly 10 minutes to complete when it used to just be a minute or two. This seems like a pretty major regression.

Expected behavior

I would expect this to complete in a reasonable amount of time (single digit minutes) like it used to prior to Xcode 16.

Actual behavior

This takes 10 or so minutes to complete in a larger project when it used to take single digit minutes. There is also no log output for a very long time after working copies have been checked out which makes this even harder to debug locally.

Steps to reproduce

  1. run the command as mentioned

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: arm64-apple-macosx14.0
Darwin brianmichel-WN7VD2T019 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:29 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6000 arm64

@brianmichel brianmichel added the bug label Nov 5, 2024
@brianmichel
Copy link
Author

As a work around would swift package describe print similar package warnings?

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

1 participant