diff --git a/AGENTS.md b/AGENTS.md index 5daf3b70aa6..92d0f90a74b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -40,10 +40,15 @@ The primary tool for this repository is `flutter_plugin_tools.dart`. ### Initial Setup -First, initialize the tooling: +First, define an environment variable for the repository root directory and initialize the tooling: ```bash -cd $REPO_ROOT/script/tool # $REPO_ROOT is the repository root -dart pub get +# Define an environment variable for the repository root. +export REPO_ROOT=$(pwd) + +# Verify that the environment variable is working correctly. +echo "Repository root directory: $REPO_ROOT" + +dart pub get -C $REPO_ROOT/script/tool ``` ### Identifying Target Packages diff --git a/script/tool/README.md b/script/tool/README.md index daa81e3309e..754a03d74e7 100644 --- a/script/tool/README.md +++ b/script/tool/README.md @@ -8,7 +8,7 @@ local development. Set up: ```sh -cd script/tool && dart pub get && cd ../../ +dart pub get -C script/tool ``` Run: