Automatically register tools/ on PATH

Developers with `direnv` installed will have ./tools added to their
PATH automatically. Also adds it to the PATH in the dev container.

This reduces `tools/dev_container tools/presubmit` to
`dev_container presubmit`.

Note: Does not rebuild the container, the change can be picked
up at a later time.

BUG=None
TEST=cd crosvm

Change-Id: Ia57bd7bb1cf86df2b32d624d97a74518e8b5f423
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4305345
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
Dennis Kempin 2023-03-02 14:56:29 -08:00 committed by crosvm LUCI
parent 041764bcd3
commit f48639f3fe
3 changed files with 2 additions and 2 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
PATH_add tools

1
.gitignore vendored
View file

@ -6,6 +6,5 @@ target/
**/*.pyc
lcov.info
.idea
.envrc
.vscode/*
!.vscode/settings.json

View file

@ -20,7 +20,7 @@ FROM docker.io/debian:testing-slim
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
PATH=/workspace/tools:/usr/local/cargo/bin:$PATH
# Install pipx applications globally in /usr/local/bin
ENV PIPX_HOME=/usr/local/pipx \