Skip to content

docs: point setup instructions at ~/.gcode/.env - #82

Merged
shauryagangrade merged 1 commit into
shauryagangrade:mainfrom
aryansk:docs/env-path-setup
Aug 14, 2026
Merged

docs: point setup instructions at ~/.gcode/.env#82
shauryagangrade merged 1 commit into
shauryagangrade:mainfrom
aryansk:docs/env-path-setup

Conversation

@aryansk

@aryansk aryansk commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Closes #52.

Problem

The README "Setup" section (and CONTRIBUTING.md Quick Setup) told users to copy .env.example to a project-root .env, but GCode only loads API keys from ~/.gcode/.env (gcode/setup.py load_env()). Users who follow the README verbatim hit "No API key provided" at startup.

Change

Chose the docs option from the issue: the app's env location stays ~/.gcode/.env (already referenced by the missing-key error in gcode/errors.py), and all user-facing setup docs are aligned with it:

  • README.md Setup: mkdir -p ~/.gcode && cp .env.example ~/.gcode/.env, then edit ~/.gcode/.env.
  • CONTRIBUTING.md Quick Setup: same commands and prose.
  • .env.example: header comment now says to copy it to ~/.gcode/.env.

Validation

  • git diff --check clean.
  • No remaining docs references to a project-root .env (grep over all .md files).
  • No code change; existing tests (tests/test_setup.py, tests/test_errors.py) already cover ~/.gcode/.env.

The README and CONTRIBUTING told users to copy .env.example to a
project-root .env, but GCode only loads keys from ~/.gcode/.env
(gcode/setup.py load_env). Align the Setup section, the Quick Setup
commands, and the .env.example header comment with the path the app
actually reads. The missing-key error already points at ~/.gcode/.env.
Fixes shauryagangrade#52.
@shauryagangrade
shauryagangrade marked this pull request as ready for review August 14, 2026 17:42
@shauryagangrade
shauryagangrade merged commit 1d8dfb5 into shauryagangrade:main Aug 14, 2026
6 checks passed
@shauryagangrade

Copy link
Copy Markdown
Owner

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.

[Bug]: README setup points at project .env but the app reads ~/.gcode/.env

2 participants