Skip to content

Commit

Permalink
Format distribution values as backticks with color
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 2, 2024
1 parent 6b253e8 commit 38e46e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildpacks/ruby/src/layers/ruby_install_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ impl MetadataDiff for Metadata {
}
if distro_name != &self.distro_name || distro_version != &self.distro_version {
differences.push(format!(
"Distribution ({} {} to {} {})",
distro_name, distro_version, self.distro_name, self.distro_version
"Distribution ({old} to {now})",
old = style::value(format!("{distro_name} {distro_version}")),
now = style::value(format!("{} {}", self.distro_name, self.distro_version))
));
}
if cpu_architecture != &self.cpu_architecture {
Expand Down

0 comments on commit 38e46e2

Please sign in to comment.