finished list, now to test them all

This commit is contained in:
Matthew Stobbs
2026-04-13 13:11:50 -06:00
parent 4a44382b01
commit 633a8cad84
163 changed files with 210 additions and 4672 deletions

View File

@@ -1,13 +1,49 @@
# vim: set filetype=yaml.ansible :
#
## Package: gopls
## Description: go language server
## Version: latest
## Methods: source
## Helpers: go_install
---
- name: Add gopls
- name: Set gopls default facts # {{{
ansible.builtin.set_fact:
gopls:
methods:
- source
install_files:
- to: bin/gopls
version: "{{ gopls_version | default('latest') }}"
install_url: golang.org/x/tools/gopls
pkg_deps:
- go
# }}}
- name: Start gopls configuration
when:
- gopls_configured is undefined
- "'gopls' not in __configured"
block:
- name: Append gopls to pkg_go
- name: Set gopls install method
when:
- gopls_imethod is undefined
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
gopls_imethod: "{{ imethod if imethod in gopls.methods else gopls.methods[0] }}"
- name: Set gopls_configured
- name: Set gopls source install facts
when:
- gopls_imethod == 'source'
block:
- name: Configure gopls source install
ansible.builtin.set_fact:
gopls_go_pkg:
url: "{{ gopls.install_url }}@ {{ gopls.version }}"
bin: "{{ path_bind }}/gopls"
files: "{{ gopls.install_files }}"
- name: Queue gopls for go_install
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [gopls_go_pkg] }}"
gopls_install: "{{ gopls_imethod }}={{ gopls_go_pkg }}"
- name: Finalise gopls configuration
ansible.builtin.set_fact:
gopls_configured: true
__configured: "{{ __configured | combine( { 'gopls': gopls_install } ) }}"