Giter VIP home page Giter VIP logo

Comments (8)

petsagouris avatar petsagouris commented on May 19, 2024

I think of this as a feature; although not being able to specify the version of the rock to be used is indeed a missing behaviour. I suggest we should be able to use something like
luarocks.require(rock_name, [^|$|-%d])
to specify what version to use.
luarocks.require(rock_name, '^') -- use the earliest version
luarocks.require(rock_name, '$') -- use the latest version
luarocks.require(rock_name, '2-$') -- use the second earliest version before the latest
luarocks.require(rock_name, '2+^') -- use the second latest version after the earliest

I don't know about what you think of this,... but I believe that this is complicated.
Maybe even a simple luarocks.require(rock_name, version_number) would be sufficient.

from luarocks.

agladysh avatar agladysh commented on May 19, 2024

This is not a feature — this is an abominable misdesign that causes me immense pain in my workflow.

from luarocks.

agladysh avatar agladysh commented on May 19, 2024

No single sane program will need more than one version of a rock.

If user needs several versions of a rock installed in the system — that is because he needs to install several programs at once. LR should give him a way to create several "sandboxes" — one for each version combination.

from luarocks.

petsagouris avatar petsagouris commented on May 19, 2024
No single sane program will need more than one version of a rock.

Of course,.. this goes without saying :)

In this relation I wouldn't put Luarocks in the position of the consumer of sanboxes configurations. Having lua_program_here use Luarocks to create a sandox would just be way outside the scope of Luarocks. Am I mis-understanding you ?

We need the programs to be able to specify what version of the installed rock they need and request it from Luarocks.

from luarocks.

agladysh avatar agladysh commented on May 19, 2024

Sandboxes are outside of the scope of this ticket. I mentioned them only as a counter-argument against your position with keeping this "feature".

Again: one local LR repository may contain at most one active version of each rock. Everything else leads to trouble.

from luarocks.

hishamhm avatar hishamhm commented on May 19, 2024

This is a feature, as explained in http://article.gmane.org/gmane.comp.lang.lua.luarocks/2197 -- multiple simultaneous versions was one of the original requirements of the project.

I will consider not making this behavior the default in the future. But this feature is not a bug and support for this will not be removed.

from luarocks.

jsimmons avatar jsimmons commented on May 19, 2024

I agree with agladsh, especially since it just installs new versions over the top without telling me. Please at least make it upgrade the current rock by default.

from luarocks.

agladysh avatar agladysh commented on May 19, 2024

@hisham: I understand that. Nevertheless, as I said above, this "feature" causes me a lot of pain. I need a way to disable it.

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.