Switch FreeBSD back to the package-based rust-analyzer.
This commit is contained in:
parent
5a763d422a
commit
a2bdb93d5e
@ -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…
x
Reference in New Issue
Block a user