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-5332] The swift run does not launch the SwiftPM implemented run command #4991
Comments
@swift-ci create |
This is ancient history dating back to when the subcommands were added (actually `swift run` may have always been present in the driver)... I'll send you some of the discussions I can find. |
Uh oh. I forgot we even had this, but I wouldn't want to break someone's script to replace it. Hm. |
I don't care about |
Could we detect this case in the new swift-run and fall back to the interpreter with a warning on stderr? If one of the direct arguments before |
Ya sure we can do that. Though `foo.swift` is a valid name for an executable but I don't think that anyone use that. Also, in future we may want to use `swift run foo.swift` for running swiftpm scripts. A deprecation warning seems reasonable. Thanks! |
I think we should:
The depreciation warning should give us coverage to reclaim this for something else in the future. |
PR for removing built-in run subcommand: apple/swift#10786 |
PR for swift-4.0-branch: apple/swift#10844 |
Additional Detail from JIRA
md5: 42c44bc4fdd5a815207841a48a24de21
Issue Description:
SwiftPM has recently implemented the
swift run
command to run executable products in the project or its dependencies. But it seems that the compiler has a run sub-command and does not call theswift-run
tool.The latest snapshot
swift-DEVELOPMENT-SNAPSHOT-2017-06-28
has the tool if you want to test it.The text was updated successfully, but these errors were encountered: