Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,13 +1,45 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: bufls
|
||||
## Description: a language server for protocol buffers
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add bufls
|
||||
- name: Set default bufls options # {{{
|
||||
ansible.builtin.set_fact:
|
||||
bufls:
|
||||
methods:
|
||||
- source
|
||||
version: latest
|
||||
go_pkg: github.com/bufbuild/buf-language-server/cmd/bufls
|
||||
# }}}
|
||||
- name: Configure bufls install
|
||||
when:
|
||||
- bufls_configured is undefined
|
||||
- "'bufls' not in __configured"
|
||||
block:
|
||||
- name: Append bufls to pkg_go
|
||||
- name: Set bufls install method
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||
bufls_imethod: "{{ imethod if imethod in bufls.methods else bufls.methods[0] }}"
|
||||
|
||||
- name: Set bufls_configured
|
||||
- name: Configure bufls source install
|
||||
when:
|
||||
- bufls_imethod == 'source'
|
||||
block:
|
||||
- name: Configure bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
bufls_go_install:
|
||||
url: "{{ bufls.go_pkg }}@{{ bufls.version }}"
|
||||
bin: "{{ path_bin }}/bufls"
|
||||
|
||||
- name: Queue bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [bufls_go_install] }}"
|
||||
|
||||
- name: Finalise bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
bufls_install: "{{ bufls_imethod }}={{ bufls_go_install }}"
|
||||
|
||||
- name: Finalise bufls configuration
|
||||
ansible.builtin.set_fact:
|
||||
bufls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'bufls': bufls_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user