fix fd and yazi

This commit is contained in:
Matthew Stobbs
2026-04-13 02:46:05 -06:00
parent 0fc65e8008
commit d062a1f372
4 changed files with 80 additions and 68 deletions

View File

@@ -9,6 +9,7 @@
## force_git: _bool_ optional, default true. Force clone, overwriting existing dir
## recursive: _bool_ optional, default true. Do a recursive clone
## version: _string_ optional, default 'latest'. Version to checkout and build
## locked: _bool_ optional, default 'false'
## build_flags: _list[str]_ optional. If set, will append these to the build command
---
- name: Cargo source install helper
@@ -24,9 +25,14 @@
ansible.builtin.include_tasks: helpers/git.yml
- name: Build cargo release
ansible.builtin.command:
chdir: "{{ pkg.source_dir }}"
argv: "{{ ['cargo', 'build'] + pkg.build_flags }}"
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
community.general.cargo:
directory: "{{ pkg.source_dir }}"
path: "{{ install_prefix }}"
name: "{{ pkg.name }}"
version: "{{ pkg.version }}"
locked: "{{ pkg.locked }}"
- name: Clean existing install
vars: