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-4539] Build executable with modules, without specified dependencies #5040

Closed
krzyzanowskim opened this issue Apr 8, 2017 · 0 comments
Closed
Labels

Comments

@krzyzanowskim
Copy link
Contributor

Previous ID SR-4539
Radar None
Original Reporter @krzyzanowskim
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Swift 3.1

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 5f3025d588534af3b1d7fd6e35232c37

duplicates:

  • SR-1393 [SwiftPM] Enforce Swift module import dependencies

Issue Description:

Please find attached project with the given structure:

.                                                                                                                                                
├── Package.swift                                                                                                                                
├── Sources                                                                                                                                      
│   ├── Module1                                                                                                                                  
│   │   └── Test1.swift                                                                                                                          
│   ├── Module2                                                                                                                                  
│   │   └── Test2.swift                                                                                                                          
│   └── example                                                                                                                                  
│       └── main.swift                                                                                                                           
└── Tests              

main.swift is

import Module1
import Module2

print("Hello world. finally.")

See https://asciinema.org/a/96jdyi31v9wwevbqqqzpeclc2 the compilation fail for the first time (ok), and success for the second time ❓

Please notice there is no dependency in the manifest file.

@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
This issue was closed.
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