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

[SwiftPM] --static-swift-stdlib is not compatible with swift test #59447

Closed
kateinoigakukun opened this issue Jun 14, 2022 · 7 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. cloned Resolution: Was resubmitted in the appropriate repository rather than transferred

Comments

@kateinoigakukun
Copy link
Member

Describe the bug
SwiftPM's --static-swift-stdlib is not compatible with swift test since it can't find XCTest module

To Reproduce
Steps to reproduce the behavior:

  1. swift package init --type executable --name StaticExec
  2. swift test --static-swift-stdlib

Then we got the following error:

Building for debugging...
/tmp/tmp.7UCHKkRKWj/Tests/StaticExecTests/StaticExecTests.swift:1:8: error: no such module 'XCTest'
import XCTest
       ^
[5/8] Emitting module StaticExecTests
error: fatalError

Expected behavior

Successfully compiled and tested code

Environment (please complete the following information):

  • OS: Ubuntu 20.04.4 LTS
  • Swift Version: ~DEVELOPMENT-SNAPSHOT-2022-06-13-a
@kateinoigakukun kateinoigakukun added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. libSwiftPM static stdlib labels Jun 14, 2022
@AnthonyLatsis
Copy link
Collaborator

@shahmishal I was looking if I could delete the libSwiftPM label (did such a library even exist?) and this is the only associated issue. Can it be transferred?

@AnthonyLatsis AnthonyLatsis added the transfer candidate The issue may belong in another repository label Feb 10, 2023
@AnthonyLatsis
Copy link
Collaborator

@kateinoigakukun What happened to this issue? Why was it closed immediately?

@kateinoigakukun
Copy link
Member Author

Ah, sorry. I reopened this in swift-package-manager repo: swiftlang/swift-package-manager#5590

@AnthonyLatsis AnthonyLatsis added duplicate Resolution: Duplicates another issue and removed libSwiftPM static stdlib labels Apr 5, 2023
@AnthonyLatsis
Copy link
Collaborator

Thanks for the pointer. Keep in mind that we can transfer issues instead of cloning.

@AnthonyLatsis
Copy link
Collaborator

@shahmishal ping

@AnthonyLatsis AnthonyLatsis closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
@kateinoigakukun
Copy link
Member Author

Actually, as far as I remember, I tried to transfer but that operation requires write-permission of the destination repository (and I don't have it).

@AnthonyLatsis
Copy link
Collaborator

Yeah, true, although it probably makes sense to grant transfer permissions to authors. I usually reach out to someone with write access on both ends when I come across these kinds of issues.

@AnthonyLatsis AnthonyLatsis added cloned Resolution: Was resubmitted in the appropriate repository rather than transferred and removed duplicate Resolution: Duplicates another issue transfer candidate The issue may belong in another repository labels Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. cloned Resolution: Was resubmitted in the appropriate repository rather than transferred
Projects
None yet
Development

No branches or pull requests

2 participants