build-push.yml comment overstates: Forgejo 15 does load a same-file YAML anchor #14

Open
opened 2026-11-24 03:34:10 +00:00 by terra · 0 comments
Member

Purpose (correctness of a comment): the note in build-push.yml says no more than what was measured, so nobody unrolls a working YAML anchor because of it.

.github/workflows/build-push.yml (main, hand-lock job, ~line 101-103) says the pq image is "written twice across lint-and-test.yml and here: Forgejo 15 refuses a YAML anchor at load".

The broad claim is wrong. Forgejo 15 on git.macula.io loads a same-file sequence anchor: macula-io/macula-rust run 3203, task 8246, executed ci-images-dependency-advisories.yml, which shares its steps as steps: &advisories_steps (line 210) / *advisories_steps (line 1967), and those steps ran. The note nearly led to a review flag on macula-io/macula-ci-images PR 28 (same construct), which I withdrew.

What is true here: an anchor cannot reach from one file into another (lint-and-test.yml to build-push.yml), so the duplication across the two files stands. The fix: reword the comment to say that, and drop "Forgejo 15 refuses a YAML anchor at load" unless something narrower (a merge key <<:?) was actually measured. Ride the next change to this file.

Purpose (correctness of a comment): the note in build-push.yml says no more than what was measured, so nobody unrolls a working YAML anchor because of it. `.github/workflows/build-push.yml` (main, hand-lock job, ~line 101-103) says the pq image is "written twice across lint-and-test.yml and here: Forgejo 15 refuses a YAML anchor at load". The broad claim is wrong. Forgejo 15 on git.macula.io loads a same-file sequence anchor: macula-io/macula-rust run 3203, task 8246, executed `ci-images-dependency-advisories.yml`, which shares its steps as `steps: &advisories_steps` (line 210) / `*advisories_steps` (line 1967), and those steps ran. The note nearly led to a review flag on macula-io/macula-ci-images PR 28 (same construct), which I withdrew. What is true here: an anchor cannot reach from one file into another (lint-and-test.yml to build-push.yml), so the duplication across the two files stands. The fix: reword the comment to say that, and drop "Forgejo 15 refuses a YAML anchor at load" unless something narrower (a merge key `<<:`?) was actually measured. Ride the next change to this file.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-graph#14
No description provided.