pub fn missing_architecture_for_property(
errors: &mut Vec<SourceInfoError>,
line: usize,
architecture: Architecture,
)
Expand description
Creates a lint error for architecture specific properties when that architecture doesn’t exist
for a given PackageBuild
or Package
.
§Examples
Parsing the following SRCINFO data triggers the creation of this lint, because an assignment for
depends_aarch64
is present while no arch = aarch64
assignment exists:
pkgbase = example
pkgver = 0.1.0
pkgrel = 1
arch = x86_64
depends_aarch64 = glibc
pkgname = example