fix: write instructions only for publishing crates

This commit is contained in:
Ulf Lilleengen 2025-08-18 15:00:22 +02:00
parent 5cab79d817
commit b00496fd29
2 changed files with 12 additions and 6 deletions

View File

@ -396,7 +396,9 @@ fn main() -> Result<()> {
while let Some(node) = bfs.next(&rgraph) {
let weight = rgraph.node_weight(node).unwrap();
let c = ctx.crates.get(weight).unwrap();
println!("git tag {}-v{}", weight, c.version);
if c.publish {
println!("git tag {}-v{}", weight, c.version);
}
}
println!("");
@ -414,8 +416,10 @@ fn main() -> Result<()> {
];
let config = c.configs.first().unwrap(); // TODO
args.push("--features".into());
args.push(config.features.join(","));
if !config.features.is_empty() {
args.push("--features".into());
args.push(config.features.join(","));
}
if let Some(target) = &config.target {
args.push("--target".into());
@ -428,7 +432,9 @@ fn main() -> Result<()> {
println!("cargo {}", dry_run.join(" "));
*/
println!("cargo {}", args.join(" "));
if c.publish {
println!("cargo {}", args.join(" "));
}
}
println!("");

View File

@ -1,9 +1,9 @@
use std::collections::HashSet;
use std::env;
use std::path::PathBuf;
use std::{env, fs};
use anyhow::anyhow;
use cargo_semver_checks::{Check, GlobalConfig, ReleaseType, RequiredSemverUpdate, Rustdoc};
use cargo_semver_checks::{Check, GlobalConfig, ReleaseType, Rustdoc};
use flate2::read::GzDecoder;
use tar::Archive;