Git Product home page Git Product logo

Comments (4)

hishamhm avatar hishamhm commented on May 29, 2024 1

LuaRocks does not support concurrent updates. The best we could would be to add some global locking, if lfs can do that...

from luarocks.

hishamhm avatar hishamhm commented on May 29, 2024 1

@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.

teto avatar teto commented on May 29, 2024

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.

hishamhm avatar hishamhm commented on May 29, 2024

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)

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.