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

-I to modules build folder allows unexpected import Module to work #8175

Open
1 task done
rauhul opened this issue Dec 16, 2024 · 0 comments
Open
1 task done

-I to modules build folder allows unexpected import Module to work #8175

rauhul opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@rauhul
Copy link
Member

rauhul commented Dec 16, 2024

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

Because swift build drops all modules into the same folder and passes that folder via a -I swiftc is able to see module that weren't explicitly depended upon in the Package.swift. Instead we can use -explicit-swift-module-map-file and tell the name and path to each module it should have visibility of.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

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

No response

@rauhul rauhul added the bug label Dec 16, 2024
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