Skip to content

docs: clarify .env setup and troubleshoot ~/.local/bin/env errors#22

Open
sanjayy0612 wants to merge 2 commits intoNVIDIA-AI-Blueprints:mainfrom
sanjayy0612:fix/issue-12-env-documentation
Open

docs: clarify .env setup and troubleshoot ~/.local/bin/env errors#22
sanjayy0612 wants to merge 2 commits intoNVIDIA-AI-Blueprints:mainfrom
sanjayy0612:fix/issue-12-env-documentation

Conversation

@sanjayy0612
Copy link
Copy Markdown

Description

Clarifies the .env file setup instructions and adds troubleshooting for the ~/.local/bin/env error that confuses first-time users.

Changes

  • Added clear instructions that .env goes in repo root only
  • Added collapsible troubleshooting section explaining the ~/.local/bin/env error
  • Added table clarifying the difference between .env (API keys) vs env (uv PATH script)
  • Made setup.sh more robust with fallbacks for different uv install locations

Related Issue

Fixes #12

Testing

  • Tested make uv successfully after following the updated instructions

- Add clear explanation that .env goes in repo root only
- Add collapsible troubleshooting section for first-time uv setup
- Clarify difference between .env (API keys) and ~/.local/bin/env (uv PATH script)
- Make setup.sh more robust with fallbacks for different uv install locations

Fixes NVIDIA-AI-Blueprints#12
Copilot AI review requested due to automatic review settings February 27, 2026 19:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates onboarding documentation and the UV bootstrap script to reduce first-time setup confusion around .env placement and missing ~/.local/bin/env errors.

Changes:

  • Clarify that .env (API keys) must be created in the repository root.
  • Add a troubleshooting section explaining the ~/.local/bin/env error and distinguishing .env vs env.
  • Make setup.sh attempt multiple PATH/env fallbacks after installing uv.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
setup.sh Adds fallback logic to locate/source UV environment setup and verifies uv is on PATH after install.
README.md Clarifies .env location and adds troubleshooting guidance for missing ~/.local/bin/env.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread README.md
Comment on lines +124 to +134
# Install uv (creates ~/.local/bin/env automatically)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Add uv to your PATH
source ~/.local/bin/env

# Now run make uv
make uv
```

**Alternative:** If `uv` is already installed via Homebrew or pipx, just ensure it's in your PATH.
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The troubleshooting steps assume ~/.local/bin/env will exist after installing uv and instruct source ~/.local/bin/env, but setup.sh now supports other install locations (e.g., $HOME/.cargo/env) and a PATH fallback. To avoid users hitting the same error on those setups, update this section to mention the alternate file/location or instruct checking command -v uv and adding the appropriate bin directory to PATH.

Copilot uses AI. Check for mistakes.
Comment thread README.md Outdated
Comment thread setup.sh Outdated
Comment thread setup.sh Outdated
…(prevents duplicate .env keys) - Change 'Directory' to 'directory' (lowercase) in error message - Improve PATH error message to mention multiple locations - Make curl | sh pipeline more robust with proper error handling

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update .env to require it in two locations?

2 participants