Skip to content

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

@futugyou

Description

@futugyou

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions