jordansissel/fpm · error · ArgumentError
osxpkg-postinstall-action value of '#{value}' is invalid. Mu
Error message
osxpkg-postinstall-action value of '#{value}' is invalid. Must be one of #{POSTINSTALL_ACTIONS.join(", ")} What it means
Error "osxpkg-postinstall-action value of '#{value}' is invalid. Must be one of #{POSTINSTALL_ACTIONS.join(", ")}" thrown in jordansissel/fpm.
Source
Thrown at lib/fpm/package/osxpkg.rb:43
"ie. 'org.great.my'. If this is omitted, the identifer " \
"will be the package name."
option "--payload-free", :flag, "Define no payload, assumes use of script options.",
:default => false
option "--ownership", "OWNERSHIP",
"--ownership option passed to pkgbuild. Defaults to 'recommended'. " \
"See pkgbuild(1).", :default => 'recommended' do |value|
if !OWNERSHIP_OPTIONS.include?(value)
raise ArgumentError, "osxpkg-ownership value of '#{value}' is invalid. " \
"Must be one of #{OWNERSHIP_OPTIONS.join(", ")}"
end
value
end
option "--postinstall-action", "POSTINSTALL_ACTION",
"Post-install action provided in package metadata. " \
"Optionally one of '#{POSTINSTALL_ACTIONS.join("', '")}'." do |value|
if !POSTINSTALL_ACTIONS.include?(value)
raise ArgumentError, "osxpkg-postinstall-action value of '#{value}' is invalid. " \
"Must be one of #{POSTINSTALL_ACTIONS.join(", ")}"
end
value
end
dont_obsolete_paths = []
option "--dont-obsolete", "DONT_OBSOLETE_PATH",
"A file path for which to 'dont-obsolete' in the built PackageInfo. " \
"Can be specified multiple times." do |path|
dont_obsolete_paths << path
end
private
# return the identifier by prepending the reverse-domain prefix
# to the package name, else return just the name
def identifier
identifier = name.dup
if self.attributes[:osxpkg_identifier_prefix]View on GitHub (pinned to b6d77ba72a)
When it happens
Trigger: Thrown at lib/fpm/package/osxpkg.rb:43 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jordansissel/fpm@b6d77ba72a (2026-08-21).
Data as JSON: /api/errors/35d7a5573880bd27.
Report an issue: GitHub.