Add alternative workaround

This commit is contained in:
Cecile Tonglet 2021-03-04 12:29:57 +01:00
parent ab3ae05c6a
commit 6017ae2317

View file

@ -100,7 +100,9 @@ stuff = { git = "ssh://git@github.com/myorg/stuff.git", branch = "main" }
You will need to change a configuration in the workflow for Windows machines in order to make cargo able to clone private repositories. You will need to change a configuration in the workflow for Windows machines in order to make cargo able to clone private repositories.
Add this step once in your workflow **before** any cargo command: There are 2 ways you can achieve this:
1. Add this step once in your job **before** any cargo command:
``` ```
- name: Update cargo config to use Git CLI - name: Update cargo config to use Git CLI
@ -109,6 +111,13 @@ Add this step once in your workflow **before** any cargo command:
This will configure Cargo to use the Git CLI as explained in the [Cargo's documentation](https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli). This will configure Cargo to use the Git CLI as explained in the [Cargo's documentation](https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli).
2. Alternatively you can set it to the environment variables for the entire workflow:
```
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
```
## What this Action *cannot* do for you ## What this Action *cannot* do for you
The following items are not issues, but beyond what this Action is supposed to do. The following items are not issues, but beyond what this Action is supposed to do.