Skip to content

Commit

Permalink
Set CARGO_NET_GIT_FETCH_WITH_CLI=true for cargo on Alpine. (ansible-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored and Dušan Markovič committed Nov 7, 2022
1 parent ac805de commit 6665b1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/targets/cargo/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
- import_tasks: setup.yml
- name: Set default environment
set_fact:
cargo_environment: {}
- name: Set special environment to work around cargo bugs
set_fact:
cargo_environment:
# See https://github.com/rust-lang/cargo/issues/10230#issuecomment-1201662729:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
when: has_cargo | default(false) and ansible_distribution == 'Alpine'
- block:
- import_tasks: test_general.yml
- import_tasks: test_version.yml
environment: "{{ cargo_environment }}"
when: has_cargo | default(false)

0 comments on commit 6665b1e

Please sign in to comment.