chaotic-aur / toolbox

Unified kit with all the scripts required for maintaining the repository 🧰
https://aur.chaotic.cx
GNU Affero General Public License v3.0
81 stars 11 forks source link

[Request] Interfere bypass and testing #80

Open xiota opened 1 year ago

xiota commented 1 year ago

Would be nice if there were a way to bypass (broken) interferes or to test a (not yet merged) interfere. When testing interferes, the package directory shouldn't be cleaned because the build is likely to be run multiple times. (This could also be useful for checking artifacts when debugging the PKGBUILD.)

chaotic mkd -n package # bypass interfere
chaotic mkd -i package # test interfere stored someplace like package.int
xiota commented 11 months ago

Maybe... could exit interference-apply() early if a special file, like interfere.bypass, is detected?

https://github.com/chaotic-aur/toolbox/blob/90c3586d7c683fb705796a97ca2ecdc65fa90420/src/lib/interfere.sh#L2-L37

Then to build without interfere:

chaotic get package
touch package/interfere.bypass
chaotic mkd package
xiota commented 11 months ago

Can bypass by renaming folder. package_ and pkgbuild-package have been suggested rename targets.

Still don't know a way to test interferes without committing.

dr460nf1r3 commented 11 months ago
nvm 😬

It still seems like a handy feature to test out interferes.

xiota commented 11 months ago

This PR only allows bypassing interferes, and others (@PedroHLC @Technetium1) have pointed out alternative methods.

Still don't know a way to test new interferes that haven't yet been committed though.