Repository navigation
fix(auth): name HEYGEN_CONFIG_DIR when there is no home directory for a login - #585
Merged
Merged
Conversation
jrusso1020
approved these changes
Nov 16, 2026
jrusso1020
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed at e8ad09e. Approving.
missingCredentialsHinttests the same condition thatpaths.ConfigDirreturnsErrNoConfigDirfor:HEYGEN_CONFIG_DIRunset, and no absolute home directory. It's used at the only place that enriches the "no API key found" error (context.go:124). The otherauthGuidanceusers (auth login,auth status, group help) are unchanged, which is right.- The test is meaningful.
authGuidanceitself never mentionsHEYGEN_CONFIG_DIR, so theContainscheck fails if the hint always returnsauthGuidance. The second half pins the normal case toauthGuidancealone. - I ran it end to end. A build of this head, run with
env -i PATH=/usr/bin:/bin heygen video list, printsauth_errorwith the new two-line lead followed by the unchanged guidance.
Go 1.26.11: the auth and no-config-dir tests pass.
Review by Rames
… a login Co-Authored-By: Claude Opus 5.5 <[email protected]>
somanshreddy
force-pushed
the
11-16-no_home_auth_hint
branch
from
November 16, 2026 04:45
e8ad09e to
6e67244
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Surfaces: CLI | Module: Auth
Summary
Follow-up to #579. With no home directory, the "no API key found" error now leads with the two fixes that work there, instead of only suggesting
heygen auth login, which cannot save a login in that environment. Live on the next release.How it works
HOMEis unset, empty or relative andHEYGEN_CONFIG_DIRis not set, the hint starts with: setHEYGEN_API_KEY, or setHEYGEN_CONFIG_DIRto a folder before runningheygen auth login. The usual guidance follows.Testing
heygen video list.🤖 Generated with Claude Code