Switch FreeBSD back to the package-based rust-analyzer.

Tom Alexander 2 weeks ago
parent 9eb5209ae5
commit b245831aca
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -17,6 +17,7 @@ devel/py-jmespath
devel/py-ptvsd
devel/py-yamllint
devel/pyenv
devel/rust-analyzer
dns/coredns
editors/emacs
editors/mg

@ -1,2 +1,4 @@
# Check that rust-analyzer is valid for date on https://rust-lang.github.io/rustup-components-history/
rust_date: "2024-03-28"
rust_date: "2024-04-29"
# rust_analyzer_version: 2024-04-29
rust_analyzer_version: package

@ -4,7 +4,15 @@
- rust-nightly
state: present
- name: Install packages
when: "rust_analyzer_version is defined and rust_analyzer_version == 'package'"
package:
name:
- rust-analyzer
state: present
- name: Create directories
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
file:
name: "{{ item }}"
state: directory
@ -15,14 +23,16 @@
- "/opt/rust-analyzer"
- name: Clone rust-analyzer Source
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
git:
repo: "https://github.com/rust-lang/rust-analyzer.git"
dest: /opt/rust-analyzer
version: "2024-04-01"
version: "{{ rust_analyzer_version }}"
force: true
diff: false
- name: Build rust-analyzer
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
command: "cargo build --release"
args:
creates: "/opt/rust-analyzer/target/release/rust-analyzer"

Loading…
Cancel
Save