File tree Expand file tree Collapse file tree 13 files changed +46
-33
lines changed Expand file tree Collapse file tree 13 files changed +46
-33
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,15 @@ jobs:
1515 labels : bottlerocket_ubuntu-latest_16-core
1616 steps :
1717 - uses : actions/checkout@v3
18- - run : cargo install cargo-deny@0.17.0 --locked
18+ - run : cargo install cargo-deny --locked
1919 - run : cargo install cargo-make --locked
2020 - uses : actions/setup-go@v5
2121 with :
2222 go-version : " ^1.18"
23- # Install `patch`, needed to build `krane-bundle`
24- - run : sudo apt-get install -y patch
25- - run : make build
23+ # Install `patch`, needed to build `krane-bundle`, and tools for linking against musl
24+ - run : sudo apt-get install -y patch musl-tools musl-dev
25+ - run : rustup target add x86_64-unknown-linux-musl
26+ - run : CARGO_BUILD_TARGET=x86_64-unknown-linux-musl make build
2627
2728 cross-build :
2829 runs-on :
Original file line number Diff line number Diff line change @@ -27,6 +27,23 @@ license-files = [
2727 { path = " src/unicode_tables/LICENSE-UNICODE" , hash = 0xa7f28b93 },
2828]
2929
30+ [clarify .rust-fuzzy-search ]
31+ expression = " MIT OR Apache-2.0"
32+ license-files = [
33+ { path = " LICENSE-APACHE" , hash = 0xbde481e5 },
34+ { path = " LICENSE-MIT" , hash = 0xb5a90d39 },
35+ ]
36+ skip-files = [
37+ # these licenses apply to documentation
38+ " target/doc/FiraSans-LICENSE.txt" ,
39+ " target/doc/COPYRIGHT.txt" ,
40+ " target/doc/LICENSE-APACHE.txt" ,
41+ " target/doc/LICENSE-MIT.txt" ,
42+ " target/doc/SourceCodePro-LICENSE.txt" ,
43+ " target/doc/SourceSerif4-LICENSE.md" ,
44+ ]
45+
46+
3047[clarify .typenum ]
3148expression = " MIT OR Apache-2.0"
3249license-files = [
Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ skip = [
7878 { name = " tabled" , version = " 0.15.0" },
7979 # multiple deps are using an older version of tabled_derive
8080 { name = " tabled_derive" , version = " 0.7.0" },
81- # multiple deps are using an older version of zerocopy
82- { name = " zerocopy" , version = " 0.7.35" },
8381]
8482
8583skip-tree = [
@@ -90,9 +88,9 @@ skip-tree = [
9088 { name = " windows-sys" },
9189]
9290
93- [bans .workspace-dependencies ]
94- duplicates = " deny"
95- include-path-dependencies = true
91+ [bans .workspace-dependencies ]
92+ duplicates = " deny"
93+ include-path-dependencies = true
9694unused = " deny"
9795
9896[sources ]
Original file line number Diff line number Diff line change 22# particular date of the nightly compiler, but we want builds to be reproducable, so we lock to a
33# specific, recent instance of nightly.
44[toolchain ]
5- channel = " nightly-2024-07-11 "
5+ channel = " nightly-2025-02-28 "
66profile = " default"
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl LookasideCache {
159159 let name = parsed
160160 . path_segments ( )
161161 . context ( error:: ExternalFileNameSnafu { path : url } ) ?
162- . last ( )
162+ . next_back ( )
163163 . context ( error:: ExternalFileNameSnafu { path : url } ) ?;
164164 Ok ( name. into ( ) )
165165 }
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ fn extract_file_name(url: &str) -> Result<PathBuf> {
162162 let name = parsed
163163 . path_segments ( )
164164 . context ( error:: InputFileBadSnafu { path : url } ) ?
165- . last ( )
165+ . next_back ( )
166166 . context ( error:: InputFileBadSnafu { path : url } ) ?;
167167 Ok ( name. into ( ) )
168168}
Original file line number Diff line number Diff line change 33//!
44//! Current two tools are supported:
55//! * crane, gcrane, krane
6- //! Crane provides a more direct interaction with the container registry,
7- //! allowing us to query image information in the registry without having to pull the full image to
8- //! disk. It also does not require a daemon to operate and has optimizations for pulling large images to disk
6+ //! Crane provides a more direct interaction with the container registry,
7+ //! allowing us to query image information in the registry without having to pull the full image to
8+ //! disk. It also does not require a daemon to operate and has optimizations for pulling large images to disk
99//! * docker
10- //! Docker can perform all interactions we need with several caveats that make it less efficient than
11- //! crane. The image needs to be pulled locally in order for docker to inspect the manifest and extract
12- //! metadata. In addition, in order to operate with OCI image format, the containerd-snapshotter
13- //! feature has to be enabled in the docker daemon
10+ //! Docker can perform all interactions we need with several caveats that make it less efficient than
11+ //! crane. The image needs to be pulled locally in order for docker to inspect the manifest and extract
12+ //! metadata. In addition, in order to operate with OCI image format, the containerd-snapshotter
13+ //! feature has to be enabled in the docker daemon
1414use std:: fmt:: { Display , Formatter } ;
1515use std:: { collections:: HashMap , path:: Path } ;
1616
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ pub(crate) struct AmiImage {
114114}
115115
116116/// Create a CRD to launch Bottlerocket instances on an EKS or ECS cluster.
117- pub ( crate ) async fn ec2_crd < ' a > (
118- bottlerocket_input : BottlerocketInput < ' a > ,
117+ pub ( crate ) async fn ec2_crd (
118+ bottlerocket_input : BottlerocketInput < ' _ > ,
119119 cluster_type : ClusterType ,
120120 region : & str ,
121121) -> Result < Resource > {
@@ -231,8 +231,8 @@ pub(crate) async fn ec2_crd<'a>(
231231}
232232
233233/// Create a CRD to launch Bottlerocket instances on an EKS or ECS cluster.
234- pub ( crate ) async fn ec2_karpenter_crd < ' a > (
235- bottlerocket_input : BottlerocketInput < ' a > ,
234+ pub ( crate ) async fn ec2_karpenter_crd (
235+ bottlerocket_input : BottlerocketInput < ' _ > ,
236236 region : & str ,
237237) -> Result < Resource > {
238238 let cluster_name = bottlerocket_input
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct CrdInput<'a> {
3636 pub images : TestsysImages ,
3737}
3838
39- impl < ' a > CrdInput < ' a > {
39+ impl CrdInput < ' _ > {
4040 /// Retrieve the TUF repo information from `Infra.toml`
4141 pub fn tuf_repo_config ( & self ) -> Option < TufRepoConfig > {
4242 if let ( Some ( metadata_base_url) , Some ( targets_url) ) = (
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ impl Update {
311311 . waves
312312 . range ( ( Included ( 0 ) , Excluded ( seed) ) )
313313 . map ( |( k, v) | ( * k, * v) )
314- . last ( ) ;
314+ . next_back ( ) ;
315315 let end_wave = self
316316 . waves
317317 . range ( ( Included ( seed) , Included ( MAX_SEED ) ) )
You can’t perform that action at this time.
0 commit comments