jordansissel/fpm · error
apk packages should not contain spaces
Error message
apk packages should not contain spaces
What it means
Error "apk packages should not contain spaces" thrown in jordansissel/fpm.
Source
Thrown at lib/fpm/package/apk.rb:57
private
# Get the name of this package. See also FPM::Package#name
#
# This accessor actually modifies the name if it has some invalid or unwise
# characters.
def name
if @name =~ /[A-Z]/
logger.warn("apk packages should not have uppercase characters in their names")
@name = @name.downcase
end
if @name.include?("_")
logger.warn("apk packages should not include underscores")
@name = @name.gsub(/[_]/, "-")
end
if @name.include?(" ")
logger.warn("apk packages should not contain spaces")
@name = @name.gsub(/[ ]/, "-")
end
return @name
end
def prefix
return (attributes[:prefix] or "/")
end
def architecture
# "native" in apk should be "noarch"
if @architecture.nil? or @architecture == "native"
@architecture = "noarch"
end
return @architecture
endView on GitHub (pinned to b6d77ba72a)
When it happens
Trigger: Thrown at lib/fpm/package/apk.rb:57 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/e54a6915e2d8aecc.
Report an issue: GitHub.