Build failed after adding new packages because the builder was assuming "bottlerocket-" prefix for all packages #3367
Replies: 1 comment
-
This can be a bit confusing. All of the RPM "packages" that are used when building Bottlerocket end up getting that "bottlerocket-" naming prefixed to the root name. So this particular error is misleading. This type of message can happen when the RPM failed to build. That would be further back in the build output. There will be a different, more specific, error message stating why the The other possibility is that there is no variant or other package pulling it in to be built. Here is an example of a package being pulled in by another one, or pulled in by the variant definition. You mentioned having added it to the aws-k8s-1.24 variant's Cargo.toml file, so I'm guessing it is the former case. But if not, please share a diff showing how you modified that Cargo.toml file and we can see if there is anything obvious that would explain why it fails. |
Beta Was this translation helpful? Give feedback.
-
I was experimenting on how to add new packages to the OS.
I followed https://github.com/bottlerocket-os/bottlerocket/blob/develop/packages/README.md and added a "hello-world" package.
cargo make -e PACKAGE=hello-world build-package
worked fine.I added this package to the aws-k8s-1.24 variant's Cargo.toml file, but then I got the error when running
cargo make
:It seems that the builder container assumes all packages have the
bottlerocket-
prefix, and this prefix was automatically added to default packages. How can I resolve this issue for any packages I add?Beta Was this translation helpful? Give feedback.
All reactions