Coder Social home page Coder Social logo

SPM error: NoSources about pathkit HOT 7 CLOSED

damuellen avatar damuellen commented on July 16, 2024
SPM error: NoSources

from pathkit.

Comments (7)

kylef avatar kylef commented on July 16, 2024

Given the documentation for SPM says the following:

  • Directories named Tests are ignored
  • Sub directories of a directory named Sources, Source, srcs or src become modules

I'd say this is an SPM bug and not a problem with PathKit.

from pathkit.

damuellen avatar damuellen commented on July 16, 2024

The newest Version of SPM has support for testing, so the folder isn't ignored anymore. The documentation is out of date. Take a look at this blog post: http://ankit.im/swift/2016/02/17/swift-package-manager-testing-preview/ Some of your other packages have the same issue. SPM don't accept subfolders in Tests which have no .swift files in it.

from pathkit.

sauliusgrigaitis avatar sauliusgrigaitis commented on July 16, 2024

I've got same issue. Testing feature comes with latest DEVELOPMENT-SNAPSHOT-2016-02-25-a release, so would be great to get released fix soon.

from pathkit.

shnhrrsn avatar shnhrrsn commented on July 16, 2024

Running into the same problem with the 2-25 snapshot. Temporary workaround seems to be deleting the Tests directory entirely.

from pathkit.

kylef avatar kylef commented on July 16, 2024

Yeah, can't solve this at the moment. There is a bug in the swift package manager's exclude [https://twitter.com/mxcl/status/703073165254070275].

from pathkit.

kylef avatar kylef commented on July 16, 2024

I think apple/swift-package-manager@02cf82d will ultimately solve this problem. Tests shouldn't even be built when using PathKit as a dependency.

from pathkit.

kylef avatar kylef commented on July 16, 2024

This can stay open, will need to add the Fixtures directory to excludes once apple/swift-package-manager#152 is merged and released.

from pathkit.

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.