OSC / ood-ansible

An ansible role for Open Ondemand
MIT License
30 stars 31 forks source link

How to patch an app git repo? #246

Closed Trigil closed 6 months ago

Trigil commented 6 months ago

Hello!

I'm wondering what's the best way to apply a patch to an app's git repo clone.

To be more precise, here is what I have in defaults/main/apps.yml ood_install_apps: codeserver: repo: https://github.com/OSC/bc_osc_codeserver.git dest: "{{ ood_sys_app_dir }}" version: master umask: '022'

And I have a bc_osc_codeserver.patch file in files/

Is there a way to give the path to the patch file directly in the apps.yml? Or is there no other way than to somehow apply it in tasks/main.yml (even if it's not where the git repo is given)?

Thanks in advance for your help, have a nice day!

Tristan

johrstrom commented 6 months ago

Fork that repository and then you can do whatever you want with it. Once you have the fork - you can occasionally sync with our app, but you'll have the app all to yourself to modify.

Trigil commented 6 months ago

Ok, thank you for your quick answer! I'll do that :)