Unknown argument "--allowerasing" for command "dnf5" [filiperosset@raw rlottie]$ sudo mock -r /etc/mock/fedora-rawhide-x86_64.cfg results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm INFO: mock.py version 4.1 starting (python version = 3.11.4, NVR = mock-4.1-1.fc39)... Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run INFO: Start(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: enabled HW Info plugin Mock Version: 4.1 INFO: Mock Version: 4.1 INFO: Package manager dnf detected and used (fallback) Start(bootstrap): installing dnf tooling Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments. ERROR: Exception(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 1 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result ERROR: Command failed: # /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/ --releasever 39 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install dnf dnf-plugins-core --setopt=tsflags=nocontexts Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments. Reproducible: Always Steps to Reproduce: 1. try to use mock -r /etc/mock/fedora-rawhide-x86_64.cfg xxx.srpm 2. also fedpkg mockbuild --no-clean is broken 3.
nevermind, my /etc/mock/site-defaults.cfg was too old