autopkg / apizz-recipes

MIT License
14 stars 23 forks source link

GoogleDrive recipe fails on extraction of GoogleDrive_arm64.pkg/Payload #80

Closed undulat closed 1 year ago

undulat commented 1 year ago

On every autopkg run of GoogleDrive.munki.recipe I get this output:

bash-3.2$ autopkg run -vvv GoogleDrive.munki.recipe
Processing GoogleDrive.munki.recipe...
{'AUTOPKG_VERSION': '2.7',
 'DOWNLOAD_URL': 'https://dl.google.com/drive-file-stream/GoogleDrive.dmg',
 'FAIL_RECIPES_WITHOUT_TRUST_INFO': 'true',
 'MUNKI_CATEGORY': 'Utilities',
 'MUNKI_PKGINFO_FILE_EXTENSION': 'pkginfo',
 'MUNKI_REPO': '/usr/local/var/jenkins/osx-munki-cfg',
 'MUNKI_REPO_SUBDIR': 'apps/googledrive',
 'NAME': 'GoogleDrive',
 'PARENT_RECIPES': ['/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive/GoogleDrive.munki.recipe',
                    '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                    'Drive/GoogleDrive.pkg.recipe',
                    '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                    'Drive/GoogleDrive.download.recipe'],
 'RECIPE_CACHE_DIR': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive',
 'RECIPE_DIR': '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides',
 'RECIPE_OVERRIDE_DIRS': ['/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides/'],
 'RECIPE_PATH': '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides/GoogleDrive.munki.recipe',
 'RECIPE_REPOS': {'/usr/local/var/jenkins/recipes-repos/com.github.arubdesu.office-recipes': {'URL': 'https://github.com/arubdesu/office-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.48kRAM-recipes': {'URL': 'https://github.com/autopkg/48kRAM-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.MichalMMac-recipes': {'URL': 'https://github.com/autopkg/MichalMMac-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apettinen-recipes': {'URL': 'https://github.com/autopkg/apettinen-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes': {'URL': 'https://github.com/autopkg/apizz-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.arubdesu-recipes': {'URL': 'https://github.com/autopkg/arubdesu-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.aysiu-recipes': {'URL': 'https://github.com/autopkg/aysiu-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.cgerke-recipes': {'URL': 'https://github.com/autopkg/cgerke-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.dataJAR-recipes': {'URL': 'https://github.com/autopkg/dataJAR-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.drewdiver-recipes': {'URL': 'https://github.com/autopkg/drewdiver-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.faumac-recipes': {'URL': 'https://github.com/autopkg/faumac-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.fishd72-recipes': {'URL': 'https://github.com/autopkg/fishd72-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gerardkok-recipes': {'URL': 'https://github.com/autopkg/gerardkok-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gregneagle-recipes': {'URL': 'https://github.com/autopkg/gregneagle-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jessepeterson-recipes': {'URL': 'https://github.com/autopkg/jessepeterson-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jps3-recipes': {'URL': 'https://github.com/autopkg/jps3-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.keeleysam-recipes': {'URL': 'https://github.com/autopkg/keeleysam-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.n8felton-recipes': {'URL': 'https://github.com/autopkg/n8felton-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nmcspadden-recipes': {'URL': 'https://github.com/autopkg/nmcspadden-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes': {'URL': 'https://github.com/autopkg/nstrauss-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nzmacgeek-recipes': {'URL': 'https://github.com/autopkg/nzmacgeek-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.orchard-recipes': {'URL': 'https://github.com/autopkg/orchard-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peshay-recipes': {'URL': 'https://github.com/autopkg/peshay-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peterkelm-recipes': {'URL': 'https://github.com/autopkg/peterkelm-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.sheagcraig-recipes': {'URL': 'https://github.com/autopkg/sheagcraig-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.wardsparadox-recipes': {'URL': 'https://github.com/autopkg/wardsparadox-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.ygini-recipes': {'URL': 'https://github.com/autopkg/ygini-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.averell23.autopkg_recipes': {'URL': 'https://github.com/averell23/autopkg_recipes.git'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.facebook.Recipes-for-AutoPkg': {'URL': 'https://github.com/facebook/Recipes-for-AutoPkg.git'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.gahel.ghelfjord-recipes': {'URL': 'https://github.com/gahel/ghelfjord-recipes'}},
 'RECIPE_REPO_DIR': '/usr/local/var/jenkins/recipes-repos/',
 'RECIPE_SEARCH_DIRS': ['/usr/local/var/jenkins/recipes',
                        [...]
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.faumac-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peterkelm-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.dataJAR-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gregneagle-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.joshua-d-miller-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.ygini-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nzmacgeek-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.gahel.ghelfjord-recipes',
                        '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive'],
 'pkg_ids_set_optional_true': ['com.google.drivefs.filesystems.dfsfuse.arm64',
                               'com.google.drivefs.filesystems.dfsfuse.x86_64',
                               'com.google.drivefs.arm64',
                               'com.google.drivefs.x86_64'],
 'pkginfo': {'catalogs': ['testing'],
             'category': 'Utilities',
             'description': 'https://www.uio.no/english/services/it/store-collaborate/gsuite/',
             'developer': 'Google Inc.',
             'display_name': 'Google Drive',
             'name': 'GoogleDrive',
             'unattended_install': True},
 'verbose': 3}
URLDownloader
{'Input': {'filename': 'GoogleDrive.dmg',
           'url': 'https://dl.google.com/drive-file-stream/GoogleDrive.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Wed, 30 Nov 2022 21:18:56 GMT
URLDownloader: Storing new ETag header: "1081bb0"
URLDownloader: Downloaded /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
{'Output': {'download_changed': True,
            'etag': '"1081bb0"',
            'last_modified': 'Wed, 30 Nov 2022 21:18:56 GMT',
            'pathname': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC '
                                        '(EQHXZ8M8AV)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
CodeSignatureVerifier: Mounted disk image /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "GoogleDrive.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2022-11-30 20:47:00 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Google LLC (EQHXZ8M8AV)
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            40 02 6A 12 12 38 F4 E0 3F 7B CE 86 FA 5A 22 2B DA 7A 3A 20 70 FF 
CodeSignatureVerifier:            28 0D 86 AA 4E 02 56 C5 B2 B4
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C 
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier: 
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack',
           'flat_pkg_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
FlatPkgUnpacker: Mounted disk image /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.Q9drgc/GoogleDrive.pkg to /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack
{'Output': {}}
DrivePayloadUnpacker
{'Input': {'destination_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/payload',
           'pkg_payload_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload'}}
Traceback (most recent call last):
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
  File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
    self.main()
  File "/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google Drive/DrivePayloadUnpacker.py", line 129, in main
    self.unpack_pkg_payload()
  File "/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google Drive/DrivePayloadUnpacker.py", line 122, in unpack_pkg_payload
    raise ProcessorError(error)
autopkglib.ProcessorError: extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

Failed.
Receipt written to /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/receipts/GoogleDrive.munki-receipt-20230118-085018.plist

The following recipes failed:
    GoogleDrive.munki.recipe
        Error in local.munki.GoogleDrive: Processor: DrivePayloadUnpacker: Error: extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

The following new items were downloaded:
    Download Path                                                                                   
    -------------                                                                                   
    /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg  
bash-3.2$ 
apizz commented 1 year ago

Seems like you are not be on the latest version of autopkg. That fix was included in https://github.com/autopkg/autopkg/pull/804 was included in 2.7.1

~ > autopkg version
2.7.2
~ > autopkg run -vv ~/Documents/git/apizz-recipes/Google_Drive/GoogleDrive.munki.recipe 
Processing /Users/autopkgadmin/Documents/git/apizz-recipes/Google_Drive/GoogleDrive.munki.recipe...
WARNING: /Users/autopkgadmin/Documents/git/apizz-recipes/Google_Drive/GoogleDrive.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'GoogleDrive.dmg',
           'url': 'https://dl.google.com/drive-file-stream/GoogleDrive.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Wed, 30 Nov 2022 21:18:56 GMT
URLDownloader: Storing new ETag header: "1081bb0"
URLDownloader: Downloaded /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg
{'Output': {'download_changed': True,
            'etag': '"1081bb0"',
            'last_modified': 'Wed, 30 Nov 2022 21:18:56 GMT',
            'pathname': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC '
                                        '(EQHXZ8M8AV)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
CodeSignatureVerifier: Mounted disk image /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "GoogleDrive.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2022-11-30 20:47:00 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Google LLC (EQHXZ8M8AV)
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            40 02 6A 12 12 38 F4 E0 3F 7B CE 86 FA 5A 22 2B DA 7A 3A 20 70 FF 
CodeSignatureVerifier:            28 0D 86 AA 4E 02 56 C5 B2 B4
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C 
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier: 
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/unpack',
           'flat_pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
FlatPkgUnpacker: Mounted disk image /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.7necVU/GoogleDrive.pkg to /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/unpack
{'Output': {}}
DrivePayloadUnpacker
{'Input': {'destination_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/payload',
           'pkg_payload_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload'}}
DrivePayloadUnpacker: Unpacked /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload to /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/payload
{'Output': {}}
PlistReader
{'Input': {'info_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/payload/Google '
                        'Drive.app/Contents/Info.plist',
           'plist_keys': {'CFBundleVersion': 'version',
                          'LSMinimumSystemVersion': 'min_os_version'}}}
PlistReader: Reading: /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/payload/Google Drive.app/Contents/Info.plist
PlistReader: Assigning value of '68.0.2' to output variable 'version'
PlistReader: Assigning value of '10.14' to output variable 'min_os_version'
{'Output': {'plist_reader_output_variables': {'min_os_version': '10.14',
                                              'version': '68.0.2'}}}
PkgCopier
{'Input': {'pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/GoogleDrive-68.0.2.pkg',
           'source_pkg': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
PkgCopier: Mounted disk image /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg
PkgCopier: Copied /private/tmp/dmg.b5XcBo/GoogleDrive.pkg to /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/GoogleDrive-68.0.2.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/GoogleDrive-68.0.2.pkg'},
                                          'summary_text': 'The following '
                                                          'packages were '
                                                          'copied:'},
            'pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/GoogleDrive-68.0.2.pkg'}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'minimum_os_version': '10.14',
                                  'version': '68.0.2'},
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Backups',
                       'description': 'With Google Drive, you stream your '
                                      'Drive files directly from the cloud to '
                                      'your Mac or PC, freeing up disk space '
                                      'and network bandwidth. Because Drive '
                                      'files are stored in the cloud, any '
                                      'changes you or your collaborators make '
                                      'are automatically updated everywhere. '
                                      'You’ll always have the latest version.\n'
                                      '\n'
                                      '    You can also make Drive files '
                                      'available for offline access. These '
                                      'cached files sync back to the cloud '
                                      "when you're online, so the latest "
                                      'version is available on all your '
                                      'devices.',
                       'developer': 'Google Inc.',
                       'display_name': 'Google Drive',
                       'name': 'GoogleDrive',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'minimum_os_version': '10.14', 'version': '68.0.2'} into pkginfo
{'Output': {'pkginfo': {'catalogs': ['testing'],
                        'category': 'Backups',
                        'description': 'With Google Drive, you stream your '
                                       'Drive files directly from the cloud to '
                                       'your Mac or PC, freeing up disk space '
                                       'and network bandwidth. Because Drive '
                                       'files are stored in the cloud, any '
                                       'changes you or your collaborators make '
                                       'are automatically updated everywhere. '
                                       'You’ll always have the latest '
                                       'version.\n'
                                       '\n'
                                       '    You can also make Drive files '
                                       'available for offline access. These '
                                       'cached files sync back to the cloud '
                                       "when you're online, so the latest "
                                       'version is available on all your '
                                       'devices.',
                        'developer': 'Google Inc.',
                        'display_name': 'Google Drive',
                        'minimum_os_version': '10.14',
                        'name': 'GoogleDrive',
                        'unattended_install': True,
                        'version': '68.0.2'}}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Backups',
                       'description': 'With Google Drive, you stream your '
                                      'Drive files directly from the cloud to '
                                      'your Mac or PC, freeing up disk space '
                                      'and network bandwidth. Because Drive '
                                      'files are stored in the cloud, any '
                                      'changes you or your collaborators make '
                                      'are automatically updated everywhere. '
                                      'You’ll always have the latest version.\n'
                                      '\n'
                                      '    You can also make Drive files '
                                      'available for offline access. These '
                                      'cached files sync back to the cloud '
                                      "when you're online, so the latest "
                                      'version is available on all your '
                                      'devices.',
                       'developer': 'Google Inc.',
                       'display_name': 'Google Drive',
                       'minimum_os_version': '10.14',
                       'name': 'GoogleDrive',
                       'unattended_install': True,
                       'version': '68.0.2'},
           'repo_subdirectory': 'apps/googledrive'}}
MunkiImporter: No value supplied for MUNKI_REPO_PLUGIN, setting default value of: FileRepo
MunkiImporter: No value supplied for MUNKILIB_DIR, setting default value of: /usr/local/munki
MunkiImporter: No value supplied for force_munki_repo_lib, setting default value of: False
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/googledrive/GoogleDrive-68.0.2.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/googledrive/GoogleDrive-68.0.2.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'GoogleDrive',
                                                       'pkg_repo_path': 'apps/googledrive/GoogleDrive-68.0.2.dmg',
                                                       'pkginfo_path': 'apps/googledrive/GoogleDrive-68.0.2.plist',
                                                       'version': '68.0.2'},
                                              'report_fields': ['name',
                                                                'version',
                                                                'catalogs',
                                                                'pkginfo_path',
                                                                'pkg_repo_path',
                                                                'icon_repo_path'],
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'imported into '
                                                              'Munki:'},
            'munki_info': {'_metadata': {'created_by': 'autopkgadmin',
                                         'creation_date': datetime.datetime(2023, 1, 18, 13, 13, 50),
                                         'munki_version': '5.6.3.4401',
                                         'os_version': '13.1'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Backups',
                           'description': 'With Google Drive, you stream your '
                                          'Drive files directly from the cloud '
                                          'to your Mac or PC, freeing up disk '
                                          'space and network bandwidth. '
                                          'Because Drive files are stored in '
                                          'the cloud, any changes you or your '
                                          'collaborators make are '
                                          'automatically updated everywhere. '
                                          'You’ll always have the latest '
                                          'version.\n'
                                          '\n'
                                          '    You can also make Drive files '
                                          'available for offline access. These '
                                          'cached files sync back to the cloud '
                                          "when you're online, so the latest "
                                          'version is available on all your '
                                          'devices.',
                           'developer': 'Google Inc.',
                           'display_name': 'Google Drive',
                           'installed_size': 796913,
                           'installer_item_hash': '248518eb28ea9c362671a03c95ea33284fd00c196353de13bb2f14870d9ab09e',
                           'installer_item_location': 'apps/googledrive/GoogleDrive-68.0.2.dmg',
                           'installer_item_size': 236382,
                           'minimum_os_version': '10.14',
                           'name': 'GoogleDrive',
                           'receipts': [{'installed_size': 174,
                                         'packageid': 'com.google.drivefs.shortcuts',
                                         'version': '68.0.2.0'},
                                        {'installed_size': 0,
                                         'packageid': 'com.google.pkg.Keystone',
                                         'version': '1.3.18.216'},
                                        {'installed_size': 396198,
                                         'packageid': 'com.google.drivefs.arm64',
                                         'version': '68.0.2.0'},
                                        {'installed_size': 400208,
                                         'packageid': 'com.google.drivefs.x86_64',
                                         'version': '68.0.2.0'},
                                        {'installed_size': 184,
                                         'packageid': 'com.google.drivefs.filesystems.dfsfuse.arm64',
                                         'version': '45.3.0.0'},
                                        {'installed_size': 149,
                                         'packageid': 'com.google.drivefs.filesystems.dfsfuse.x86_64',
                                         'version': '45.3.0.0'}],
                           'unattended_install': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '68.0.2'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/googledrive/GoogleDrive-68.0.2.dmg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/googledrive/GoogleDrive-68.0.2.plist'}}
StopProcessingIf
{'Input': {'predicate': 'munki_repo_changed == FALSE'}}
StopProcessingIf: (munki_repo_changed == FALSE) is False
{'Output': {}}
MunkiOptionalReceiptEditor
{'Input': {'pkg_ids_set_optional_true': ['com.google.drivefs.filesystems.dfsfuse.arm64',
                                         'com.google.drivefs.filesystems.dfsfuse.x86_64',
                                         'com.google.drivefs.arm64',
                                         'com.google.drivefs.x86_64'],
           'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/googledrive/GoogleDrive-68.0.2.plist'}}
MunkiOptionalReceiptEditor: Setting package ID com.google.drivefs.arm64 as optional
MunkiOptionalReceiptEditor: Setting package ID com.google.drivefs.x86_64 as optional
MunkiOptionalReceiptEditor: Setting package ID com.google.drivefs.filesystems.dfsfuse.arm64 as optional
MunkiOptionalReceiptEditor: Setting package ID com.google.drivefs.filesystems.dfsfuse.x86_64 as optional
MunkiOptionalReceiptEditor: Writing pkginfo to /Users/Shared/munki_repo/pkgsinfo/apps/googledrive/GoogleDrive-68.0.2.plist
{'Output': {}}
Receipt written to /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/receipts/GoogleDrive.munki-receipt-20230118-081350.plist

The following new items were downloaded:
    Download Path                                                                                  
    -------------                                                                                  
    /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/downloads/GoogleDrive.dmg  

The following packages were copied:
    Pkg Path                                                                                    
    --------                                                                                    
    /Users/autopkgadmin/Library/AutoPkg/Cache/com.github.apizz.munki.GoogleDrive/GoogleDrive-68.0.2.pkg  

The following new items were imported into Munki:
    Name         Version  Catalogs  Pkginfo Path                               Pkg Repo Path                            Icon Repo Path  
    ----         -------  --------  ------------                               -------------                            --------------  
    GoogleDrive  68.0.2   testing   apps/googledrive/GoogleDrive-68.0.2.plist  apps/googledrive/GoogleDrive-68.0.2.dmg
undulat commented 1 year ago

I installed 2.7.2 now but the error persists:

bash-3.2$ autopkg run -vvv GoogleDrive.munki.recipe
Processing GoogleDrive.munki.recipe...
{'AUTOPKG_VERSION': '2.7.2',
 'DOWNLOAD_URL': 'https://dl.google.com/drive-file-stream/GoogleDrive.dmg',
 'FAIL_RECIPES_WITHOUT_TRUST_INFO': 'true',
 'MUNKI_CATEGORY': 'Utilities',
 'MUNKI_PKGINFO_FILE_EXTENSION': 'pkginfo',
 'MUNKI_REPO': '/usr/local/var/jenkins/osx-munki-cfg',
 'MUNKI_REPO_SUBDIR': 'apps/googledrive',
 'NAME': 'GoogleDrive',
 'PARENT_RECIPES': ['/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive/GoogleDrive.munki.recipe',
                    '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                    'Drive/GoogleDrive.pkg.recipe',
                    '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                    'Drive/GoogleDrive.download.recipe'],
 'RECIPE_CACHE_DIR': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive',
 'RECIPE_DIR': '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides',
 'RECIPE_OVERRIDE_DIRS': ['/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides/'],
 'RECIPE_PATH': '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides/GoogleDrive.munki.recipe',
 'RECIPE_REPOS': {'/usr/local/var/jenkins/recipes-repos/com.github.arubdesu.office-recipes': {'URL': 'https://github.com/arubdesu/office-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.48kRAM-recipes': {'URL': 'https://github.com/autopkg/48kRAM-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.MichalMMac-recipes': {'URL': 'https://github.com/autopkg/MichalMMac-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apettinen-recipes': {'URL': 'https://github.com/autopkg/apettinen-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes': {'URL': 'https://github.com/autopkg/apizz-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.arubdesu-recipes': {'URL': 'https://github.com/autopkg/arubdesu-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.aysiu-recipes': {'URL': 'https://github.com/autopkg/aysiu-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.cgerke-recipes': {'URL': 'https://github.com/autopkg/cgerke-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.dataJAR-recipes': {'URL': 'https://github.com/autopkg/dataJAR-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.drewdiver-recipes': {'URL': 'https://github.com/autopkg/drewdiver-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.faumac-recipes': {'URL': 'https://github.com/autopkg/faumac-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.fishd72-recipes': {'URL': 'https://github.com/autopkg/fishd72-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gerardkok-recipes': {'URL': 'https://github.com/autopkg/gerardkok-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gregneagle-recipes': {'URL': 'https://github.com/autopkg/gregneagle-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jessepeterson-recipes': {'URL': 'https://github.com/autopkg/jessepeterson-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jps3-recipes': {'URL': 'https://github.com/autopkg/jps3-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.keeleysam-recipes': {'URL': 'https://github.com/autopkg/keeleysam-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.n8felton-recipes': {'URL': 'https://github.com/autopkg/n8felton-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nmcspadden-recipes': {'URL': 'https://github.com/autopkg/nmcspadden-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes': {'URL': 'https://github.com/autopkg/nstrauss-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nzmacgeek-recipes': {'URL': 'https://github.com/autopkg/nzmacgeek-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.orchard-recipes': {'URL': 'https://github.com/autopkg/orchard-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peshay-recipes': {'URL': 'https://github.com/autopkg/peshay-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peterkelm-recipes': {'URL': 'https://github.com/autopkg/peterkelm-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.sheagcraig-recipes': {'URL': 'https://github.com/autopkg/sheagcraig-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.wardsparadox-recipes': {'URL': 'https://github.com/autopkg/wardsparadox-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.ygini-recipes': {'URL': 'https://github.com/autopkg/ygini-recipes'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.averell23.autopkg_recipes': {'URL': 'https://github.com/averell23/autopkg_recipes.git'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.facebook.Recipes-for-AutoPkg': {'URL': 'https://github.com/facebook/Recipes-for-AutoPkg.git'},
                  '/usr/local/var/jenkins/recipes-repos/com.github.gahel.ghelfjord-recipes': {'URL': 'https://github.com/gahel/ghelfjord-recipes'}},
 'RECIPE_REPO_DIR': '/usr/local/var/jenkins/recipes-repos/',
 'RECIPE_SEARCH_DIRS': ['/usr/local/var/jenkins/recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.rtrouton-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gerardkok-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.keeleysam-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.n8felton-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hansen-m-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jss-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.homebysix-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.hjuutilainen-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jleggat-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.scriptingosx-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nmcspadden-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.aysiu-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.cgerke-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.sheagcraig-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.arubdesu-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.wardsparadox-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peshay-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apettinen-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jps3-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.48kRAM-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.jessepeterson-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.facebook.Recipes-for-AutoPkg',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.orchard-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.fishd72-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.arubdesu.office-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.drewdiver-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.MichalMMac-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.averell23.autopkg_recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.faumac-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.peterkelm-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.dataJAR-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.gregneagle-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.joshua-d-miller-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.ygini-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nzmacgeek-recipes',
                        '/usr/local/var/jenkins/recipes-repos/com.github.gahel.ghelfjord-recipes',
                        '/usr/local/var/jenkins/osx-munki-cfg/autopkg-overrides/RecipeOverrides',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.apizz-recipes/Google_Drive',
                        '/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google '
                        'Drive'],
 'pkg_ids_set_optional_true': ['com.google.drivefs.filesystems.dfsfuse.arm64',
                               'com.google.drivefs.filesystems.dfsfuse.x86_64',
                               'com.google.drivefs.arm64',
                               'com.google.drivefs.x86_64'],
 'pkginfo': {'catalogs': ['testing'],
             'category': 'Utilities',
             'description': 'https://www.uio.no/english/services/it/store-collaborate/gsuite/',
             'developer': 'Google Inc.',
             'display_name': 'Google Drive',
             'name': 'GoogleDrive',
             'unattended_install': True},
 'verbose': 3}
URLDownloader
{'Input': {'filename': 'GoogleDrive.dmg',
           'url': 'https://dl.google.com/drive-file-stream/GoogleDrive.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
{'Output': {'pathname': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC '
                                        '(EQHXZ8M8AV)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
CodeSignatureVerifier: Mounted disk image /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "GoogleDrive.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2022-11-30 20:47:00 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Google LLC (EQHXZ8M8AV)
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            40 02 6A 12 12 38 F4 E0 3F 7B CE 86 FA 5A 22 2B DA 7A 3A 20 70 FF 
CodeSignatureVerifier:            28 0D 86 AA 4E 02 56 C5 B2 B4
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C 
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier: 
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack',
           'flat_pkg_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg/GoogleDrive.pkg'}}
FlatPkgUnpacker: Mounted disk image /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/downloads/GoogleDrive.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.wb9UmV/GoogleDrive.pkg to /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack
{'Output': {}}
DrivePayloadUnpacker
{'Input': {'destination_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/payload',
           'pkg_payload_path': '/usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload'}}
Traceback (most recent call last):
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
  File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
    self.main()
  File "/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google Drive/DrivePayloadUnpacker.py", line 129, in main
    self.unpack_pkg_payload()
  File "/usr/local/var/jenkins/recipes-repos/com.github.autopkg.nstrauss-recipes/Google Drive/DrivePayloadUnpacker.py", line 122, in unpack_pkg_payload
    raise ProcessorError(error)
autopkglib.ProcessorError: extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

Failed.
Receipt written to /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/receipts/GoogleDrive.munki-receipt-20230118-152840.plist

The following recipes failed:
    GoogleDrive.munki.recipe
        Error in local.munki.GoogleDrive: Processor: DrivePayloadUnpacker: Error: extraction of /usr/local/var/jenkins/Library/AutoPkg/Cache/local.munki.GoogleDrive/unpack/GoogleDrive_arm64.pkg/Payload with ditto failed: ditto: cpio read error: bad file format

Nothing downloaded, packaged or imported.
bash-3.2$ 
apizz commented 1 year ago

So the issue (per that error) isn't with the recipe it's with the DrivePayloadUnpacker processor.

There's nothing about changing my recipe that's going to fix that particular issue for you unfortunately. And since I can't replicate the issue locally or in my larger environment, I'm afraid you'll either need to determine what's unique or different with your jenkins setup and/or file an issue with https://github.com/autopkg/nstrauss-recipes to troubleshoot the processor.