File tree Expand file tree Collapse file tree 3 files changed +229
-16
lines changed Expand file tree Collapse file tree 3 files changed +229
-16
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,12 @@ impl Md {
186
186
for md in mds {
187
187
md. append_blocks ( & mut blocks, & mut visited_cratesio_stages) ;
188
188
blocks. push ( '\n' ) ;
189
+ for line in toml:: to_string_pretty ( md) . expect ( "previously enc" ) . lines ( ) {
190
+ blocks. push_str ( "## " ) ;
191
+ blocks. push_str ( line) ;
192
+ blocks. push ( '\n' ) ;
193
+ }
194
+ blocks. push ( '\n' ) ;
189
195
}
190
196
self . append_blocks ( & mut blocks, & mut visited_cratesio_stages) ;
191
197
blocks
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ rm -rf $CARGO_TARGET_DIR/* >/dev/null
70
70
$CARGO green install --locked --frozen --offline --force $install_package --root=$install_root
71
71
REPO=$( cargo metadata --no-deps --format-version 1 | jq -r ' .packages[] | select(.name=="cargo-green").repository' )
72
72
VSN=$( cargo metadata --no-deps --format-version 1 | jq -r ' .packages[] | select(.name=="cargo-green").version' )
73
- git --no-pager diff -- $CARGOGREEN_FINAL_PATH
74
- cat << EOF | diff -u - <(git --no-pager diff -- $CARGOGREEN_FINAL_PATH | tail -n+6)
73
+ git --no-pager diff --ignore-matching-lines= ' ^## ' -- $CARGOGREEN_FINAL_PATH
74
+ cat << EOF | diff -u - <(git --no-pager diff --ignore-matching-lines='^##' -- $CARGOGREEN_FINAL_PATH | tail -n+6)
75
75
# check=error=true
76
76
# Generated by $REPO v$VSN
77
77
@@ -80,15 +80,6 @@ cat <<EOF | diff -u - <(git --no-pager diff -- $CARGOGREEN_FINAL_PATH | tail -n+
80
80
81
81
FROM scratch AS cratesio-pico-args-0.5.0
82
82
ADD --chmod=0664 --checksum=sha256:5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315 \\
83
- @@ -183,7 +183,7 @@ COPY --from=dep-b-buildxargs-1.4.0-39127c16f4d70192 /tmp/cargo-green--hack-cachi
84
- ##
85
- ## [[stages]]
86
- ## name = "rust-base"
87
- -## script = "FROM --platform=\$ BUILDPLATFORM docker.io/library/rust:1.84.1-slim@sha256:69fbd6ab81b514580bc14f35323fecb09feba9e74c5944ece9a70d9a2a369df0 AS rust-base"
88
- +## script = "FROM --platform=\$ BUILDPLATFORM docker.io/library/rust:1.84.0-slim@sha256:0ec205a9abb049604cb085f2fdf7630f1a31dad1f7ad4986154a56501fb7ca77 AS rust-base"
89
- ##
90
- ## [[stages]]
91
- ## name = "cratesio-buildxargs-1.4.0"
92
83
EOF
93
84
git add $CARGOGREEN_FINAL_PATH
94
85
ensure__rewrite_cratesio_index__works
You can’t perform that action at this time.
0 commit comments