This commit is contained in:
Rylan Polster 2022-06-29 11:47:57 -04:00
parent 1294de9e48
commit b271ae151b
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
3 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,6 @@
# typed: true
# frozen_string_literal: true
require "version"
# Helper functions for querying operating system information.
#
# @api private

View File

@ -8,8 +8,6 @@ module OS
module_function
::MacOS = OS::Mac
sig { returns(String) }
def os_version
if which("lsb_release")
@ -33,6 +31,8 @@ module OS
module Mac
module_function
::MacOS = OS::Mac
raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
def version

View File

@ -16,7 +16,7 @@ module OS
# TODO: bump version when new macOS is released or announced
# and also update references in docs/Installation.md,
# https://github.com/Homebrew/install/blob/HEAD/install.sh and
# OS::Mac::Version (in HOMEBREW_LIBRARY/os.rb)
# MacOSVersions::SYMBOLS
NEWEST_UNSUPPORTED = "13"
private_constant :NEWEST_UNSUPPORTED