Skip to content

Commit

Permalink
Install cargo-insta in dev containers (#909)
Browse files Browse the repository at this point in the history
Since cargo-insta is a dependency to manage tests, the dev environment
is incomplete if it is not installed.
  • Loading branch information
spenserblack committed Dec 28, 2022
1 parent fdb42e6 commit b4fbac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dockerfile": "Dockerfile",
"args": { "VARIANT": "buster" }
},
"postCreateCommand": "git config --global --add safe.directory $PWD",
"postCreateCommand": "git config --global --add safe.directory $PWD && cargo install cargo-insta",
"extensions": ["EditorConfig.EditorConfig"],
"remoteUser": "vscode"
}
2 changes: 2 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ vscode:
- 'rust-lang.rust-analyzer'
- 'tamasfe.even-better-toml'
tasks:
- name: Install cargo-insta
init: cargo install cargo-insta
- name: Build Onefetch
before: sudo apt install -y cmake
init: cargo build
Expand Down

0 comments on commit b4fbac0

Please sign in to comment.