Comments (3)
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.
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.
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)
- Mock release
- Config parser error
- Broken bash completion HOT 2
- SSH Agent Forwarding HOT 2
- Reset icon name and window title when leaving shell HOT 4
- Mock hangs in 'Finish(bootstrap): installing dnf tooling' setting up F39 chroot HOT 10
- Could mock-core-configs use fedora-distro-aliases somehow? HOT 5
- openSUSE build fails in Fedora Copr HOT 14
- Use Fedora-based DNF5 capable bootstrap images HOT 1
- RFE: automatically import key for F(N+1) when building for rawhide HOT 5
- Mock build can produce two SRPM packages in the results directory HOT 3
- ERROR: type object 'FileDownloader' has no attribute 'backmap'
- oraclelinux+epel-7-x86_64 does not populate %rhel nor %oraclelinux macros HOT 2
- `--scrub=all` doesn't appear to remove files for anything but the current running Fedora version HOT 1
- `mock --init` occasinally fails with `ERROR: stat: path should be string, bytes, os.PathLike or integer, not NoneType` HOT 4
- RFE: download build artifacts after %install and before %check phase HOT 2
- subid nss provider breaks mock HOT 8
- Cannot use config_opts[f"{config_opts.package_manager}.conf"] HOT 10
- Calculate spec/srpm (dynamic) build requires as a separate build mode HOT 1
- Document Dynamic BuildRequires feature HOT 3
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 mock.