Git Product home page Git Product logo

Comments (6)

ravelasquez99 avatar ravelasquez99 commented on July 25, 2024

Update. I pinged the folks in the Swift Package manager slack. They said...

It looks as if the sources: ["."] in the package manifest of the package is causing every file in that directory to be treated as a source file. That line has been in the manifest for a while, so that could be a bug in Swift 5. I don’t know if that was a deliberate change in behavior for swift-tools-version:5.0 packages, but even if it were, it doesn’t seem that the dependency should be treated that way, since it is declaring itself as 4.0

Still pending more comments from them, but I think we may be able to fix this by updating this line to point to a nested folder instead (

)

from secp256k1.swift.

ravelasquez99 avatar ravelasquez99 commented on July 25, 2024

I also confirmed this happened between Swift 5.1->5.2.2. As it does not repro on Swift 5.1

from secp256k1.swift.

koraykoska avatar koraykoska commented on July 25, 2024

@ravelasquez99 Thanks for identifying this issue. But I don't understand what exactly causes the issue. Is it really the "."? Changing it to a subfolder and moving all the files just works? Could you give it a try and make a PR if it works?

from secp256k1.swift.

koraykoska avatar koraykoska commented on July 25, 2024

You would only have to move the files secp256k1-config.h, secp256k1_ec_mult_static_context.h and secp256k1_main.h to a headers subfolder and change the "." to "headers". If this is the issue...

from secp256k1.swift.

koraykoska avatar koraykoska commented on July 25, 2024

For me the error seems more like the compiler is trying to compile non source files. In which case I do really hope they support regex paths already as it would really be painful including all files manually...

from secp256k1.swift.

koraykoska avatar koraykoska commented on July 25, 2024

@ravelasquez99 I can build the library. Please close this issue unless it persists with current Swift versions.

from secp256k1.swift.

Related Issues (9)

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.