Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: checkmake
|
||||
## Description: linter for makefiles
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add checkmake
|
||||
- name: Set checkmake default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
checkmake:
|
||||
methods:
|
||||
- source
|
||||
go_pkg: github.com/checkmake/checkmake/cmd/checkmake
|
||||
version: latest
|
||||
# }}}
|
||||
- name: Configure checkmake
|
||||
when:
|
||||
- checkmake_configured is undefined
|
||||
block:
|
||||
- name: Add checkmake to pkg_go
|
||||
- name: Set checkmake install method
|
||||
when:
|
||||
- checkmake_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
||||
checkmake_imethod: "{{ imethod if imethod in checkmake.methods else checkmake.methods[0] }}"
|
||||
|
||||
- name: Configure checkmake source install
|
||||
when:
|
||||
- checkmake_imethod == 'source'
|
||||
block:
|
||||
- name: Configure checkmake go install
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_go_install:
|
||||
url: "{{ checkmake.go_pkg }}@{{ checkmake.version }}"
|
||||
bin: "{{ path_bin }}/checkmake"
|
||||
|
||||
- name: Queue checkmake source install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [checkmake_go_install] }}"
|
||||
|
||||
- name: Finalise checkmake source install
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_install: "{{ checkmake_imethod }}={{ checkmake_go_install }}"
|
||||
|
||||
- name: Set checkmake_configured
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_configured: true
|
||||
__configured: "{{ __configured | combine( { 'checkmake': checkmake_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user