Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In some environments, the 'home directory' cannot be accessed #272

Open
futugyou opened this issue Dec 9, 2024 · 0 comments
Open

In some environments, the 'home directory' cannot be accessed #272

futugyou opened this issue Dec 9, 2024 · 0 comments

Comments

@futugyou
Copy link

futugyou commented Dec 9, 2024

I encountered an error while deploying my Golang application using hcp-sdk-go on Vercel Functions. When calling NewHCPConfig, the following error occurred:
failed to retrieve user's home directory path: $home.

After checking the source code, I found that NewHCPConfig (source) calls setTokenSource (source), which in turn calls TokenCacheFile (source), leading to the error (source).

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

No branches or pull requests

1 participant