release:tag: a rerun after a rejected tag push stops on the local action-v tag
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- git, node.js, typescript
Rechercherichtung
Read scripts/release-tags.mjs and inspect how it creates the annotated action-v<version> tag compared with the other two tags. The issue gives a reproduction using version 9.9.9; check the script's behavior after those local tags exist. Done means rerunning the command can push all three tags after a rejected push, while the existing remote tag checks remain in place. An open linked pull request (#280) indicates work is already underway.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
npm run release:tag (scripts/release-tags.mjs) creates the three release tags locally, then pushes them in one atomic push. When that push is rejected (network error, a protected-tag rule, a missing permission), the tags it created stay in the local clone. Running the command again then stops before pushing anything:
fatal: tag 'action-v9.9.9' already exists
The v<version> and cli-release-v<version> tags are created with git tag -f, so they are replaced on a rerun. The annotated action-v<version> tag is created with git tag -a and no -f, so it is not. The only way out is to delete the local tag by hand, even though the script's header says reruns are expected ("The workflow accepts tags that already exist").
Reproduce
- In a clone whose
originhas the release commit onmainand no release tags, create the local tags a rejected push leaves behind:git tag v9.9.9,git tag -a action-v9.9.9 -m xandgit tag cli-release-v9.9.9, withpackages/diffci-cli/package.jsonat version9.9.9. - Run
node scripts/release-tags.mjs.
Expected: the three tags are pushed at HEAD. Actual: fatal: tag 'action-v9.9.9' already exists, and nothing is pushed.
The tags on origin are still checked before anything is created, so passing -f to the annotated tag only replaces a local tag that was never published.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 4
- Ø Merge
- 18 Std. 41 Min.
- Gemergte PRs (30 T.)
- 48
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DiffCI/core
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at randomEvtl. vergeben @FredApps hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Agent tools: changed_files lists only the new path of a renamed fileEvtl. vergeben @FredApps hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
DiffCI/core#243 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
adapter good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
agent-ready area: ui-server priority: p3 type: test
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
schlessera/brain-kit#4249 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation tool triaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
can1357/oh-my-pi#19608 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
dependencies tech-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
bcgov/nr-waste-plus#1549 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
blixvip/solana-tx-parse#18 ·