Skip to content

Commit

Permalink
Add Etc::Group struct members to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Feb 5, 2024
1 parent 8558543 commit 78fd89d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/mktemp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run
begin
chown(nil, group_id, @tmpdir)
rescue Errno::EPERM
opoo "Failed setting group \"#{T.unsafe(Etc.getgrgid(group_id)).name}\" on #{@tmpdir}"
opoo "Failed setting group \"#{T.must(Etc.getgrgid(group_id)).name}\" on #{@tmpdir}"
end

begin
Expand Down
14 changes: 13 additions & 1 deletion Library/Homebrew/sorbet/rbi/upstream.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@
# This file contains temporary definitions for fixes that have
# been submitted upstream to https://github.com/sorbet/sorbet.

# https://github.com/sorbet/sorbet/pull/7647/files
# https://github.com/sorbet/sorbet/pull/7650
class Etc::Group < Struct
sig { returns(Integer) }
def gid; end
sig { returns(T::Array[String]) }
def mem; end
sig { returns(String) }
def name; end
sig { returns(String) }
def passwd; end
end

# https://github.com/sorbet/sorbet/pull/7647
module IRB
sig { params(ap_path: T.nilable(String), argv: T::Array[String]).void }
def self.setup(ap_path, argv: ::ARGV); end
Expand Down

0 comments on commit 78fd89d

Please sign in to comment.