Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(git): log name and version of package that initiated failed git operation #19

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ fn main() -> Result<()> {
.env("GIT_TERMINAL_PROMPT", "0")
.output()?;
if !out.status.success() {
println!("Couldn't clone {} repo status={}", repository, out.status);
println!(
"Couldn't clone {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
}
Expand Down Expand Up @@ -378,8 +381,8 @@ fn main() -> Result<()> {
.context("checkout the commit")?;
if !out.status.success() {
println!(
"Couldn't checkout the commit in {} repo status={}",
repository, out.status
"Couldn't checkout the commit in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -393,8 +396,8 @@ fn main() -> Result<()> {
.context("init submodules")?;
if !out.status.success() {
println!(
"Couldn't init submodules in {} repo status={}",
repository, out.status
"Couldn't init submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -408,8 +411,8 @@ fn main() -> Result<()> {
.context("sync submodules")?;
if !out.status.success() {
println!(
"Couldn't sync submodules in {} repo status={}",
repository, out.status
"Couldn't sync submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -423,8 +426,8 @@ fn main() -> Result<()> {
.context("update submodules")?;
if !out.status.success() {
println!(
"Couldn't update submodules in {} repo status={}",
repository, out.status
"Couldn't update submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand Down