Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-3031

Add os.macosx.version.patch fact

    XMLWordPrintable

Details

    • New Feature
    • For macOS versions 11 (Big Sur) and newer, the `os.macosx.version.minor` has been split into an additional `os.macosx.version.patch` fact. Contributed by community member ccaviness.
    • Needs Assessment

    Description

      Starting with macOS 11, Apple has more clearly started using major.minor.patch for OS versions.

      FACT-2914 changes how os.macosx.version.major is reported, but instead essentially splitting on the first . and concatenating the second set, it would be more correct to split into 3 and report major/minor/patch.

      Current:

      ❯ facter os.macosx.version                  
      {
        full => "11.2.2",
        major => "11",
        minor => "2.2",
      }
      

      Proposed:

      ❯ facter os.macosx.version                  
      {
        full => "11.2.2",
        major => "11",
        minor => "2",
        patch => "2"
      }
      

      See Apple's API at https://developer.apple.com/documentation/foundation/nsoperatingsystemversion?language=objc

      Attachments

        Activity

          People

            Unassigned Unassigned
            ccaviness Clay Caviness
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support