Skip to content

[Sync to prerelease] Fix duplicate version in older releases table#1973

Merged
cderv merged 1 commit intoprereleasefrom
sync-1972-to-prerelease
Mar 24, 2026
Merged

[Sync to prerelease] Fix duplicate version in older releases table#1973
cderv merged 1 commit intoprereleasefrom
sync-1972-to-prerelease

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Description

Sync of #1972 to prerelease.

Original PR

Fix duplicate version in older releases table

The "Older Releases" table on the download page shows version 1.8.27 twice.

Root Cause

tools/release-notes.R uses cat(..., append = TRUE) to add entries to
docs/download/_download-older.yml. If the script runs twice (e.g. re-running
the release checklist), it blindly appends a duplicate with no guard.

Fix

  • Remove the duplicate 1.8.27 entry from _download-older.yml
  • Replace the cat(append) approach with yaml12-based upsert: the script now
    parses the existing YAML, checks if the version is already present, and
    either updates it or appends a new entry
  • Add yaml12 as a project dependency (DESCRIPTION + renv.lock)

* Fix duplicate 1.8.27 entry in older releases listing

The version 1.8.27 entry was appended twice to _download-older.yml,
causing it to appear as a duplicate row on the download page.

* Add yaml12 dependency for structured YAML handling

yaml12 will be used in release-notes.R for idempotent updates to
_download-older.yml, preventing duplicate entries.

* Use yaml12 for idempotent upsert in release-notes.R

Replace blind cat(append=TRUE) with yaml12-based read/check/write.
The script now parses the existing YAML, checks if the version is
already present, and either updates it or appends a new entry.
This prevents duplicate entries if the script runs twice.

(cherry picked from commit afe4421)
@cderv
Copy link
Copy Markdown
Member

cderv commented Mar 24, 2026

/deploy-preview

@github-actions
Copy link
Copy Markdown
Contributor Author

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-1973.quarto.org

@cderv cderv merged commit b58d511 into prerelease Mar 24, 2026
@cderv cderv deleted the sync-1972-to-prerelease branch March 24, 2026 17:03
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.

1 participant