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

Use process over os for backwards compatibility. #77

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

andrewsomething
Copy link
Member

@andrewsomething andrewsomething commented Aug 28, 2023

os was added in Node 16. Even though we specify that we run on Node 16 and it is the oldest currently supported release upstream, self-host runners may not be properly configured to provide the same environment as GitHub hosted runners. So this switches to using process for greater backwards compatibility.

The drawback to this approach is that os reports information about the actual operating system while process reports information about the node binary itself. Though in most cases that should be fine.

Closes: #76

@andrewsomething andrewsomething merged commit cf10ddb into v2 Aug 28, 2023
16 checks passed
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.

Self hosted runner: os.machine is not a function
2 participants