release:tag: a rerun after a rejected tag push stops on the local action-v tag
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- git, node.js, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 4
- 平均マージ
- 18時間 41分
- マージ済み PR(30日)
- 48
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiffCI/core のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at random対応中かも @FredApps が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
Agent tools: changed_files lists only the new path of a renamed file対応中かも @FredApps が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
adapter good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
agent-ready area: ui-server priority: p3 type: test
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
schlessera/brain-kit#4249 ·
メンテナーはふだん 1 日以内に返信
-
documentation tool triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
can1357/oh-my-pi#19608 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
dependencies tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bcgov/nr-waste-plus#1549 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
blixvip/solana-tx-parse#18 ·