Unable to build a new package #2249
-
Hi team, I’m trying to build a new coredns package for the Bottlerocket image following this guide, but I received the error below:
Here is my directory structure.
I made sure to refresh the Cargo.lock the file before building and execute the command in the top-level Bottlerocket directory. What is the best way to identify and resolve the issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think something missing in that guide you link is that you need to include the package in the Once you update the |
Beta Was this translation helpful? Give feedback.
I think something missing in that guide you link is that you need to include the package in the
Cargo.toml
file of the variant you are trying to modify, so lets say you are updatingaws-k8s-1.23
you will have to modify this file, and add the package to bothincluded-packages
andbuild-dependencies
.Once you update the
Cargo.toml
file, you need tocd variants; cargo build; cd ../
so thatvariants/Cargo.lock
is updated.