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-11065] The 'swift' command can run executable tagged .swift files with Package Manager dependencies #4856

Open
swift-ci opened this issue Jul 3, 2019 · 0 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jul 3, 2019

Previous ID SR-11065
Radar None
Original Reporter tprimm (JIRA User)
Type New Feature

Attachment: Download

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

md5: 8599730be4dc58709863842cfb4c1ee8

Issue Description:

Attached is the e-mail thread explaining the scenario, but here are the samples from the e-mail:

We tried https://swift.org/blog/swiftpm-repl-support/ out, but that seems to only allow me to get the Swift Package working in an interactive interpreter.

We're hoping to get this to work with getting the compile to work, and then run a script with the compiled Swift Package in the included path.

An example of what I would’ve guessed from the Swift command was
$ swift run —repl main.swift

What I did to test this was to do a clone of the Swift Package I want locally, run:
$ swift run —repl
In the source directory of the package. Followed by copying my script (that works when I do this all in Xcode and compile) to the directory where I ran the last command. Then I ran:
$ swift run —repl main.swift
But it opens up an interactive terminal for me instead of running my script.

The end goal would be to run the script with an environment that can import the downloaded and compiled package source.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants