Code Monkey home page Code Monkey logo

Comments (3)

praiskup avatar praiskup commented on June 30, 2024

The module_enable option doesn't make much sense on the command line. The options you pick at the "chroot initialization" phase are baked into the cache, any other subsequent use of these has no effect. The option is not documented, and is obsoleted by module_setup_commands (we should raise a proper warning).

Anyway, if you need to specify array on commandline, you have set the same value multiple times, and if you need array with a single item - just specify the first item as empty string, e.g. --config-opts module_enable= --config-opts module_enable=nodejs:18.

from mock.

yavor-atanasov avatar yavor-atanasov commented on June 30, 2024

The options you pick at the "chroot initialization" phase are baked into the cache, any other subsequent use of these has no effect

I realised this as I played around with it a bit more. It's a shame, I think being able to trigger different builds with the same root config but vary the enabled yum modules per build would be a great feature. Otherwise, like you say, there's no point in exposing those options on the command line. Also, I'm not sure how you even provide values to the module_setup_commands via the command line given it needs to translate to a list of tuples.

I guess our best bet is to just create separate configurations per build, which will result in multiple root caches (even though they will only differ on the set of enabled modules)

from mock.

praiskup avatar praiskup commented on June 30, 2024

Alternatively, we could implement a runtime knob for working with modules (so that modules are enabled/installed/... post-init time)? The popularity of modularity is decreasing though; Fedora demodularizes, not sure what's the future to invest too much into it. Would you mind submitting a patch?

from mock.

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.