Skip to content

Commit

Permalink
Don't include macOS 12 in "_before_ 12" deprecation check (Cherry-pic…
Browse files Browse the repository at this point in the history
…k of #21420) (#21421)

This was a fence-post error in #21326, where the "before 12" check
included 12, instead of just 10.15 and 11. This mistake led to getting
deprecation warnings about macOS 10.15 & 11 while running on macOS 12.

Co-authored-by: Huon Wilson <huon@exoflare.io>
  • Loading branch information
WorkerPants and huonw authored Sep 16, 2024
1 parent 40f9556 commit 93a7f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/util/osutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def is_macos_big_sur() -> bool:
def is_macos_before_12() -> bool:
"""MacOS 11 support ended Sep 2023."""
version = _macos_major_version()
return version is not None and version <= 12
return version is not None and version < 12


def getuser() -> str:
Expand Down

0 comments on commit 93a7f4a

Please sign in to comment.