Skip to content

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
@soutaro soutaro deleted the use-io-null branch September 11, 2024 07:19
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants