Comments (8)
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.
This is not a feature — this is an abominable misdesign that causes me immense pain in my workflow.
from luarocks.
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.
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.
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.
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.
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.
@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)
- 3.10.0 release build paralyzation issue HOT 4
- `sudo luarocks install` right after `configure && make && sudo make install` targets the local project dir HOT 3
- Feature Request: Userspace local directory restructure? HOT 1
- I can't build mime during luasocket installing HOT 4
- Invalid Debian Installation HOT 1
- Support applying patches created with `diff -Naur`
- Bug: Adding entries to .gitignore ... HOT 1
- when using luarocks3.11 config,it goes wrong HOT 1
- Could this third-party toolkit be any harder on windows? I've never done anything this hard
- Error: LuaRocks 3.11.0 bug - win32-x86_64 (fs_use_modules = true) (binary) - when installing a package that transitively depends on LuaFileSystem HOT 3
- cannot force reinstall package on v3.11.0
- enable ssl cert check by default
- How does luarocks check wether a dependency exists ? HOT 8
- API failure when uploading rockspec HOT 4
- luarocks.lock in cwd not respected by `luarocks install`
- Purl specification for Lua (Sofwtare supply chain) HOT 1
- transfer ownership of lua-vips to a new maintainer HOT 3
- Unable to do download manifests, files, etc etc HOT 2
- fetch.lua:67: attempt to index a nil value (local 'fd') HOT 1
- Non-root "Luarocks install" should suggest --local installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luarocks.