Skip to content

Fix Windows path resolution, add env variable overrides#27

Open
zcaceres wants to merge 1 commit into
mainfrom
fix/windows-path-and-env-vars
Open

Fix Windows path resolution, add env variable overrides#27
zcaceres wants to merge 1 commit into
mainfrom
fix/windows-path-and-env-vars

Conversation

@zcaceres

Copy link
Copy Markdown
Owner

Summary

Test plan

  • On Windows: bun run src/index.ts auth should resolve paths correctly (no C:\C:\...)
  • With env vars: GOOGLE_OAUTH_KEYS_PATH=/custom/path.json bun run src/index.ts auth should use the custom path
  • Without env vars: default relative paths still work as before

Use fileURLToPath instead of URL.pathname to correctly handle Windows
file:// URLs. Add GOOGLE_OAUTH_KEYS_PATH and GOOGLE_TASKS_CREDENTIALS_PATH
env variables for custom file locations.

Closes #7, closes #10, closes #11, closes #18
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.

Windows: OAuth keyfilePath resolves incorrectly to C:\C:\...

1 participant