{"record":{"id":"2e72fd0a70b75f9e","repo":"jordansissel/fpm","slug":"osxpkg-ownership-value-of-value-is-invalid-m","errorCode":null,"errorMessage":"osxpkg-ownership value of '#{value}' is invalid. Must be one of #{OWNERSHIP_OPTIONS.join(\", \")}","messagePattern":"osxpkg-ownership value of '#(.+?)' is invalid\\. Must be one of #(.+?)","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/fpm/package/osxpkg.rb","lineNumber":33,"sourceCode":"  SCRIPT_MAP = {\n    :before_install     => \"preinstall\",\n    :after_install      => \"postinstall\",\n  } unless defined?(SCRIPT_MAP)\n\n  POSTINSTALL_ACTIONS = [ \"logout\", \"restart\", \"shutdown\" ]\n  OWNERSHIP_OPTIONS = [\"recommended\", \"preserve\", \"preserve-other\"]\n\n  option \"--identifier-prefix\", \"IDENTIFIER_PREFIX\",\n    \"Reverse domain prefix prepended to package identifier, \" \\\n    \"ie. 'org.great.my'. If this is omitted, the identifer \" \\\n    \"will be the package name.\"\n  option \"--payload-free\", :flag, \"Define no payload, assumes use of script options.\",\n    :default => false\n  option \"--ownership\", \"OWNERSHIP\",\n    \"--ownership option passed to pkgbuild. Defaults to 'recommended'. \" \\\n    \"See pkgbuild(1).\", :default => 'recommended' do |value|\n    if !OWNERSHIP_OPTIONS.include?(value)\n      raise ArgumentError, \"osxpkg-ownership value of '#{value}' is invalid. \" \\\n        \"Must be one of #{OWNERSHIP_OPTIONS.join(\", \")}\"\n    end\n    value\n  end\n\n  option \"--postinstall-action\", \"POSTINSTALL_ACTION\",\n    \"Post-install action provided in package metadata. \" \\\n    \"Optionally one of '#{POSTINSTALL_ACTIONS.join(\"', '\")}'.\" do |value|\n    if !POSTINSTALL_ACTIONS.include?(value)\n      raise ArgumentError, \"osxpkg-postinstall-action value of '#{value}' is invalid. \" \\\n        \"Must be one of #{POSTINSTALL_ACTIONS.join(\", \")}\"\n    end\n    value\n  end\n\n  dont_obsolete_paths = []\n  option \"--dont-obsolete\", \"DONT_OBSOLETE_PATH\",\n    \"A file path for which to 'dont-obsolete' in the built PackageInfo. \" \\","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/osxpkg.rb#L15-L51","documentation":"Error \"osxpkg-ownership value of '#{value}' is invalid. Must be one of #{OWNERSHIP_OPTIONS.join(\", \")}\" thrown in jordansissel/fpm.","triggerScenarios":"Thrown at lib/fpm/package/osxpkg.rb:33 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}