Skip to content

Commit 9b950fd

Browse files
committed
fuzz: update generate-files.sh
You should be able to run this script cleanly. Update it to include a recent Cargo.toml change, and add a big header which will hopefully remind me not to edit the Cargo.toml file directly.
1 parent 47d01d1 commit 9b950fd

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/cron-daily-fuzz.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Automatically generated by fuzz/generate-files.sh
1+
######
2+
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.
3+
## Edit that script instead and re-run it.
4+
######
25
name: Fuzz
36
on:
47
schedule:

fuzz/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
######
2+
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.
3+
## Edit that script instead and re-run it.
4+
######
15
[package]
26
name = "elements-fuzz"
37
edition = "2021"

fuzz/generate-files.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ source "$REPO_DIR/fuzz/fuzz-util.sh"
1010

1111
# 1. Generate fuzz/Cargo.toml
1212
cat > "$REPO_DIR/fuzz/Cargo.toml" <<EOF
13+
######
14+
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.
15+
## Edit that script instead and re-run it.
16+
######
1317
[package]
1418
name = "elements-fuzz"
1519
edition = "2021"
@@ -34,6 +38,7 @@ use_self = "warn"
3438
3539
[package.metadata.rbmt.lint]
3640
allowed_duplicates = [
41+
"bitcoin-internals",
3742
"hex-conservative",
3843
"getrandom",
3944
"wasi",
@@ -55,7 +60,10 @@ done
5560

5661
# 2. Generate .github/workflows/cron-daily-fuzz.yml
5762
cat > "$REPO_DIR/.github/workflows/cron-daily-fuzz.yml" <<EOF
58-
# Automatically generated by fuzz/generate-files.sh
63+
######
64+
## DO NOT EDIT THIS FILE DIRECTLY. It is generated by generate-fuzz.sh.
65+
## Edit that script instead and re-run it.
66+
######
5967
name: Fuzz
6068
on:
6169
schedule:

0 commit comments

Comments
 (0)