Comments (8)
Seems like a SwiftPM. bug where it requires a linux-test-main even though we aren't building the tests.
I can fix, but I can only test in CI.
from swift-sh.
Let me take a closer look.
from swift-sh.
Well I'm on it, but you're welcome. The strategy I was going to use was taking the tests out of the Linux version with #if os(Linux)
, since maintaining a Linux main is a PITA, I'm waiting for Apple to fix that themselves.
from swift-sh.
Tests are now covered but the project itself does not build due to Foundation differences on Linux
[segabor@csihuhu swift-sh]$ swift build
Compile Swift Module 'Shwifty' (6 sources)
/home/segabor/Workspace/swift-sh/Sources/Script.swift:78:17: error: value of type 'Process' has no member 'run'
try task.run()
^~~~ ~~~
/home/segabor/Workspace/swift-sh/Sources/Path.swift:318:21: error: type 'NSData.WritingOptions' has no member 'atomicWrite'
opts = .atomicWrite
^~~~~~~~~~~
error: terminated(1): /usr/bin/swift-build-tool -f /home/segabor/Workspace/swift-sh/.build/debug.yaml main output:
from swift-sh.
After #8 I'll tag a new version and bump the formula. Thanks for the report and help!
from swift-sh.
Just one more thing. I made a typo in my PR and also testTarget was not enabled on Linux in Package.swift. New pull request was opened for this.
Now project builds on Linux but tests break with the followin
[segabor@csihuhu swift-sh]$ swift build && swift test
Test Suite 'All tests' started at 2019-01-14 16:46:47.175
Test Suite 'debug.xctest' started at 2019-01-14 16:46:47.175
Test Suite 'IntegrationTests' started at 2019-01-14 16:46:47.175
Test Case 'IntegrationTests.testConventional' started at 2019-01-14 16:46:47.176
Fatal error: init(for:) is not yet implemented: file Foundation/Bundle.swift, line 57
Exited with signal code 4
from swift-sh.
I'm going to open a separate ticket for Bundle specific issue.
from swift-sh.
Fixed by #8, new release tagged and can be installed with any of the support methods.
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
- error: The operation couldn’t be completed. (NSPOSIXErrorDomain.13) HOT 6
- 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.