You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any other solution with minimal code required would do, there is a built-in function called os/user but according to Mitchell Hashimoto, the create of the go-homedir function above:
Why not just use os/user? The built-in os/user package requires cgo on Darwin systems. This means that any Go code that uses that package cannot cross compile. But 99% of the time the use for os/user is just to retrieve the home directory, which we can do for the current user without cgo. This library does that, enabling cross-compilation.
Or that was the case 6 years ago, it may be different today, haven't done the research.
Acceptance Criteria
Ensure that the tilde (~) gets expanded properly. Don't use too much code for this.
The text was updated successfully, but these errors were encountered:
Description
Using tilde for the home directory in the configuration for credentials_file does not work:
This is because
os.ReadFile(path)
does not expand the tilde.Proposed solution
We can use the go-homedir function here is an example
Any other solution with minimal code required would do, there is a built-in function called os/user but according to Mitchell Hashimoto, the create of the go-homedir function above:
Why not just use os/user? The built-in os/user package requires cgo on Darwin systems. This means that any Go code that uses that package cannot cross compile. But 99% of the time the use for os/user is just to retrieve the home directory, which we can do for the current user without cgo. This library does that, enabling cross-compilation.
Or that was the case 6 years ago, it may be different today, haven't done the research.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: