Git Product home page Git Product logo

Comments (2)

hishamhm avatar hishamhm commented on May 23, 2024

Thanks for the detailed report!

"luarocks pack" on a rockspec file creates a zip with the downloaded URL and the rockspec only. So, you're right, I think the right behavior in that case would be to fail when trying to pack once the source.url entry is found to be invalid.

I can't make "luarocks pack" work on the overall contents of the current directory (like "luarocks make") because the rockspec doesn't have enough information about which files should and should not be added (an example of this situation would be build.type="command").

So, I think the solution will be to make it fail on your "luarocks pack foobar-scm-1.rockspec" and just use make + pack for a situation like this. Does that sound sensible?

(I'm not entirely comfortable with using invalid source.url entries, but the use case looks reasonable -- in fact, this may be seen as an argument for making source.url optional in the rockspec format.)

from luarocks.

agladysh avatar agladysh commented on May 23, 2024

No problem if LR would fail in this case. Much better than current confusing behaviour anyway.

As for invalid (or missing) source.url, it is inevitable — for the case when rocks are to be created from unsupported source (like /was/ git+ssh or mercurial). So, it would be good if LR would support it explicitly.

I'm not sure if it is good idea to make source.url optional, maybe it would be more readable to force users to set it to false?

from luarocks.

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.