Tags: koca-build/koca
Tags
Fix file ownership in packages via fakeroot-aware Rust stat Go makes raw syscalls that bypass fakeroot's LD_PRELOAD, so nfpm was ignoring install -o / chown in package() and defaulting everything to root/root. Fix by statting files in Rust (via libc, intercepted by fakeroot) and passing owner/group/mode through the JSON config to Go, which uses them directly in FileInfo without calling os.Stat(). Also bumps version to 0.1.7. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Include architecture in package filenames and refine architecture logic - Update the output filename format to `pkgname-version-arch.ext`. - Correct the definitions of 'all' and 'any' architectures to handle architecture-independent vs. host-specific builds properly. - Use `noarch` for RPM packages when the architecture is `all`. - Bump project version to 0.1.6 across all manifests.