Comments (6)
how'd you install swift sh?
from swift-sh.
brew install swift-sh
❯ which swift-sh
/opt/homebrew/bin/swift-sh
from swift-sh.
Thanks for the report, I really don’t have time to debug this and nothing comes to mind. It could be Swift 5.7 doesn't work. /cc @wti
from swift-sh.
Your script works for me on Intel macOS 13.1 with Swift 5.7.1 installed via homebrew. I also tried #!/usr/bin/env swift-sh
.
To isolate and make a reproducible case, you could start by cloning the project and running the tests
git clone https://github.com/mxcl/swift-sh.git
swift test
from swift-sh.
Well this is kind of crazy, but it seems to be a side effect of the directory I was running it from. I did the following:
- Cloned swift-sh, ran tests. Success.
- In that directory, created my test script, ran it. Success.
- Went back to directory I was in when I reported the issue (~/Downloads), ran my test script. Failed.
- Copied that test script to my home directory, ran it. Success.
- Copied the test script from step 1 to ~/Downloads, ran it. Failed.
So I'll keep playing around to see if the problem arises again. If getting to the bottom of this is something you want to pursue, I'm happy to run additional tests.
from swift-sh.
K this is a bug in that the CWD shouldn't cause failure.
from swift-sh.
Related Issues (20)
- Scripts don't run on M1 w/ Xcode 12.3 (x86 Homebrew) HOT 2
- Something odd about the 2.2.0 release brew record HOT 2
- Error: reference to member 'v11_1' cannot be resolved without a contextual type.macOS(.v11_1) HOT 3
- Change version to 11 HOT 1
- Fail to import when the package-name and repo-name are not identical HOT 1
- CI won't build linux with swift 5.1
- Brew complaining about outdated formula syntax HOT 1
- Error during installation: Invalid bottle tag symbol HOT 1
- Support scripts w/ `@main` HOT 1
- Dashes in product name breaks dependency resolving HOT 1
- Does not build for release with the Xcode 13 GM HOT 4
- PathKit dependency needs to be updated to 1.0.1 HOT 1
- Error reference to member `v12_1` cannot be resolved HOT 1
- Expose an option that prints the cached build directory? HOT 2
- CI and test failures update & PR links HOT 2
- Editing using `swift sh edit` eventually fails with "The file doesn't exist" HOT 2
- Configurable templates/context HOT 4
- Package not regenerated if you change the import reference HOT 1
- Missing support for async entry points HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-sh.