Handle CRLF Cargo manifest in packaging scripts (#3656)

This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-13 15:59:57 -05:00
1 parent 05fc7f2835
commit 53576d2232
1 file changed
+1
+1
View File
@@ -16,6 +16,7 @@ export ROOT
# (`cargo xtask version` prints the same thing; awk avoids compiling xtask here.)
workspace_version() {
awk '
{ sub(/\r$/, "") }
/^\[/ { in_pkg = ($0 == "[workspace.package]") ; next }
in_pkg && $1 == "version" { gsub(/[" ]/, "", $3); print $3; exit }
' "$ROOT/Cargo.toml"