Skip to content

fix: Using platform-agnostic homedir() as output dir#124

Open
james-braund wants to merge 1 commit intotrilom:masterfrom
james-braund:master
Open

fix: Using platform-agnostic homedir() as output dir#124
james-braund wants to merge 1 commit intotrilom:masterfrom
james-braund:master

Conversation

@james-braund
Copy link
Copy Markdown

Type of Change

  • New feature
  • Bug fix
  • Documentation
  • Refactor
  • Chore

Resolves

Describe Changes

Switched out platform-specific process.env.HOME for platform agnostic os.homedir().

Haven't adjusted unit tests, as they still feel appropriate. You could make the argument that we should mock the response from os.homedir() instead of allowing a real call to the underlay environment variables, but that would require some fairly significant refactoring of the tests.

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.

Support for windows-latest build environment

1 participant