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-ptvsd
|
||||||
devel/py-yamllint
|
devel/py-yamllint
|
||||||
devel/pyenv
|
devel/pyenv
|
||||||
|
devel/rust-analyzer
|
||||||
dns/coredns
|
dns/coredns
|
||||||
editors/emacs
|
editors/emacs
|
||||||
editors/mg
|
editors/mg
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
# Check that rust-analyzer is valid for date on https://rust-lang.github.io/rustup-components-history/
|
# 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
|
- rust-nightly
|
||||||
state: present
|
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
|
- name: Create directories
|
||||||
|
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
|
||||||
file:
|
file:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
@ -15,14 +23,16 @@
|
|||||||
- "/opt/rust-analyzer"
|
- "/opt/rust-analyzer"
|
||||||
|
|
||||||
- name: Clone rust-analyzer Source
|
- name: Clone rust-analyzer Source
|
||||||
|
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
|
||||||
git:
|
git:
|
||||||
repo: "https://github.com/rust-lang/rust-analyzer.git"
|
repo: "https://github.com/rust-lang/rust-analyzer.git"
|
||||||
dest: /opt/rust-analyzer
|
dest: /opt/rust-analyzer
|
||||||
version: "2024-04-01"
|
version: "{{ rust_analyzer_version }}"
|
||||||
force: true
|
force: true
|
||||||
diff: false
|
diff: false
|
||||||
|
|
||||||
- name: Build rust-analyzer
|
- name: Build rust-analyzer
|
||||||
|
when: "rust_analyzer_version is defined and rust_analyzer_version != 'package'"
|
||||||
command: "cargo build --release"
|
command: "cargo build --release"
|
||||||
args:
|
args:
|
||||||
creates: "/opt/rust-analyzer/target/release/rust-analyzer"
|
creates: "/opt/rust-analyzer/target/release/rust-analyzer"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user