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 IO::NULL instead of /dev/null #2000

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Use IO::NULL instead of /dev/null #2000

merged 1 commit into from
Sep 11, 2024

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Sep 11, 2024

/dev/null is not provided at Windows platform. We should use IO::NULL for that.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@soutaro soutaro added this pull request to the merge queue Sep 11, 2024
Merged via the queue into master with commit 6ea40c4 Sep 11, 2024
19 checks passed
@soutaro soutaro deleted the use-io-null branch September 11, 2024 07:19
@@ -83,7 +83,7 @@ def test_generate_lock_from_collection_repository

def test_generate_lock_from_relative_git_repository
mktmpdir do |git_tmpdir|
system('git', 'clone', 'https://github.com/ruby/gem_rbs_collection.git', git_tmpdir.to_s, exception: true, 2 => '/dev/null')
system('git', 'clone', 'https://github.com/ruby/gem_rbs_collection.git', git_tmpdir.to_s, exception: true, 2 => IO::NULL)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err: IO::NULL would be preferable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants