Skip to content

Commit

Permalink
fix(gitpod): workaround rustup's concurrent issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Jun 20, 2022
1 parent 2418871 commit fc36f70
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- name: Prepare Rust components
before: |
# It is a little hacky way to prevent
# the rustup concurrent issue…
cargo -V
gp sync-done rust-installation
- name: Install cargo-udeps
init: cargo install cargo-udeps
init: |
gp sync-await rust-installation
cargo install cargo-udeps
- name: Pre-run check, clippy and build
before:
before: |
gp sync-await rust-installation
cargo check
init: |
gp sync-await rust-installation
cargo clippy
cargo build
vscode:
Expand All @@ -22,4 +32,3 @@ vscode:
- "eamodio.gitlens"
# Live Server
- "ritwickdey.LiveServer"

0 comments on commit fc36f70

Please sign in to comment.