Skip to content

Commit

Permalink
Fix scripts nightly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Jan 10, 2024
1 parent e412272 commit a127661
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
3 changes: 3 additions & 0 deletions aws-lc-rs/src/key_wrap/tests/fips.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

#![cfg(debug_assertions)]

use crate::{
Expand Down
14 changes: 7 additions & 7 deletions scripts/tools/cargo-dig.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env -S cargo +nightly -Zscript
//! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
//! SPDX-License-Identifier: Apache-2.0 OR ISC
//! ```cargo
//! [dependencies]
//! toml = "0.7.2"
//! clap = { version = "4.1.6", features = ["derive"] }
//! ```
```cargo
[dependencies]
toml = "0.8"
clap = { version = "4", features = ["derive"] }
```
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

use clap::Parser;
use std::fs::read_to_string;
Expand Down
5 changes: 2 additions & 3 deletions scripts/tools/copyright_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

set -e

Expand All @@ -11,8 +10,8 @@ AWS_LC_RS_FILES=$(find "$PWD" -type f \( -name "*.rs" -o -name "*.sh" \) -not \(
FAILED=0

for file in $AWS_LC_RS_FILES; do
# The word "Copyright" should appear at least once in the first 4 lines of every file
COUNT=`head -n 4 "${file}" | grep "Copyright" | wc -l`;
# The word "Copyright" should appear at least once in the first 25 lines of every file
COUNT=`head -n 25 "${file}" | grep "Copyright" | wc -l`;
if [ "${COUNT}" -eq "0" ]; then
FAILED=1;
echo "Copyright Check Failed: $file";
Expand Down
16 changes: 8 additions & 8 deletions scripts/tools/semver.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env -S cargo +nightly -Zscript
//! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
//! SPDX-License-Identifier: Apache-2.0 OR ISC
//! ```cargo
//! [dependencies]
//! clap = { version = "4", features = ["derive"] }
//! regex = "1"
//! semver = "1"
//! ```
```cargo
[dependencies]
clap = { version = "4", features = ["derive"] }
regex = "1"
semver = "1"
```
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

use clap::{Parser, Subcommand};
use regex::Regex;
Expand Down

0 comments on commit a127661

Please sign in to comment.