Conversation
Set the PackageId field on each application-inventory.json entry to the
on-disk RPM filename plus its sha256 digest:
<name>-<version>-<release>.<arch>.rpm@sha256:<hex>
Source-package (parent) entries get an empty PackageId. A binary entry
with no matching on-disk RPM aborts the build.
Signed-off-by: Jarrett Tierney <jmt@amazon.com>
qianxjcraig
approved these changes
Oct 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Set the PackageId field on each application-inventory.json entry to the on-disk RPM filename plus its sha256 digest:
Source-package (parent) entries get an empty PackageId. A binary entry with no matching on-disk RPM aborts the build.
Testing done:
Example Object:
{ "Name": "whippet", "Publisher": "bottlerocket-core-kit", "Version": "0.0", "Release": "1.1789777546.352546d7.br1", "Epoch": "1", "InstalledTime": "2026-09-29T23:07:21Z", "ApplicationType": "Unspecified", "Architecture": "aarch64", "Url": "https://github.com/bottlerocket-os/bottlerocket", "Summary": "Custom launcher for the D-Bus message broker", "PackageId": "bottlerocket-whippet-0.0-1.1789777546.352546d7.br1.aarch64.rpm@sha256:3a39c8e52f9fb7211460798216d74c525300192ba993c01b72486ab834778005" },Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.