Git Product home page Git Product logo

Comments (8)

mxcl avatar mxcl commented on May 28, 2024

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.

segabor avatar segabor commented on May 28, 2024

Let me take a closer look.

from swift-sh.

mxcl avatar mxcl commented on May 28, 2024

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.

segabor avatar segabor commented on May 28, 2024

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.

mxcl avatar mxcl commented on May 28, 2024

After #8 I'll tag a new version and bump the formula. Thanks for the report and help!

from swift-sh.

segabor avatar segabor commented on May 28, 2024

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.

segabor avatar segabor commented on May 28, 2024

I'm going to open a separate ticket for Bundle specific issue.

from swift-sh.

mxcl avatar mxcl commented on May 28, 2024

Fixed by #8, new release tagged and can be installed with any of the support methods.

from swift-sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.