Skip to content

Conversation

@RAprogramm
Copy link
Owner

Summary

Fixed YAML syntax error in release workflow that caused startup_failure on v0.24.19 release.

Problem

Release workflow failed with startup_failure error when processing tag v0.24.19:

Root Cause

Heredoc delimiters in release.yml used custom names with potential YAML conflicts:

cat > "${TMPDIR}/src/main.rs" << 'RUST_EOF'
...
RUST_EOF

cat > "${TMPDIR}/Cargo.toml" << 'TOML_EOF'
...
TOML_EOF

GitHub Actions YAML parser had issues with these delimiter names.

Solution

Simplified heredoc delimiters to standard EOF:

cat > "${TMPDIR}/src/main.rs" << 'EOF'
...
EOF

cat > "${TMPDIR}/Cargo.toml" << 'EOF'
...
EOF

Note: Single quotes around 'EOF' are maintained to prevent variable expansion in heredoc content.

Changes

  • Line 125: 'RUST_EOF''EOF'
  • Line 159: RUST_EOFEOF
  • Line 161: 'TOML_EOF''EOF'
  • Line 169: TOML_EOFEOF

Test Plan

  • YAML syntax validated
  • Heredoc functionality preserved
  • Variable expansion still prevented by single quotes

Next Steps

After merge:

  • Re-run release workflow for v0.24.19
  • Verify crates.io publish succeeds

Closes #197

Fix YAML parsing error caused by quoted heredoc delimiters.

Changes:
- Replace 'RUST_EOF' with 'EOF' in heredoc delimiter
- Replace 'TOML_EOF' with 'EOF' in heredoc delimiter
- Maintain heredoc quoting to prevent variable expansion

Fixes:
- Resolves startup_failure in release workflow (run 18441530077)
- GitHub Actions YAML parser now correctly handles heredoc syntax
@RAprogramm RAprogramm merged commit 9555195 into main Oct 12, 2025
9 checks passed
@RAprogramm RAprogramm deleted the 197 branch October 12, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix YAML syntax error in release.yml heredoc

2 participants