Comments (4)
LuaRocks does not support concurrent updates. The best we could would be to add some global locking, if lfs
can do that...
from luarocks.
@teto I added some locking -- the lock for the cache is a try-lock which creates a temporary cache dir if it can't acquire it, but the repositories have a lock which fails the command if another one is in progress.
This means that if you are building with different --tree
targets, things should work. If you are targeting the same tree, you'll get safer failures. Exit code 4 means a lock failure, meaning you can wait and retry later.
from luarocks.
is there any trick I could leverage like :
- pass the manifest myself
- set its lifetime to a high value so that luarocks doesn't try to redownload it itself ?
- prefetch it and make it read-only ?
from luarocks.
If you're doing concurrent builds targeting the same trees, I'm afraid not. If you do that you are probably going to get other clashes when instances scan the filesystem for generating the local manifests as packages get installed.
HOWEVER, if you're targeting independent trees and the only clashes you are getting are from the LuaRocks cache, then you have a solution: get each instance to use a separate config file (which you can supply the luarocks
process with the LUAROCKS_CONFIG
environment variable) with a different folder in the local_cache
setting. (There's currently no way to pass individual config settings to a luarocks
command, so you'll need the one-config-file-per-instance kludge...)
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.