Keep VERSION for the Nix build, maintained by the release bot after adopting release-tools
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 44/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- build-system
調査の方向性
Start with nix/monoprop.nix, README.md, and .github/workflows/deploy.yml, then find developer docs that describe updating VERSION at release time. Confirm how the release stub configures version-files and how the existing version check and PR change detection work. Done when the release bot maintains root VERSION, the docs describe its new meaning, and the tag version check still passes.
索引モデルが issue の本文から書いたものです。
説明
🤖 AI text below 🤖
Summary
When monoprop adopts release-tools, keep the root VERSION file and let the release bot maintain it (version-files: "VERSION" in the release stub), and update what the repository says about it: the file stops meaning "the latest stable release".
Why the file stays
nix/monoprop.nix builds in the Nix sandbox, which has no .git, so setuptools-scm can't see the tags; the derivation reads version ? builtins.readFile ../VERSION and passes it as SETUPTOOLS_SCM_PRETEND_VERSION. A flake can't read tags either (only self.rev, self.revCount), and the version has to be a real one: downstream flakes consume ps.monoprop, and nixpkgs checks Python dependency constraints at build time (pythonRuntimeDepsCheck), so a placeholder such as 0.0.0+g<rev> would break any monoprop>=… requirement. This is the case version-files is for.
What the file holds after adoption
The bot writes it; nobody edits it by hand any more:
| Where | VERSION says |
|---|---|
| A release tag (alpha, beta, release candidate, final, patch) | that release's version: the tag's commit records it |
release/X.Y |
the newest final of that line, once it has one |
main |
X.(Y+1).0.dev0 after each X.Y.0: a Nix build of main reports the series it develops, no longer the last stable release |
So deploy.yml's "Check release version" step keeps passing for every tag the bot pushes, and a Nix build of main still satisfies >= the latest final. One limit: during the next series' alphas, betas and release candidates, main says X.(Y+1).0.dev0, below them, so a downstream flake that requires one of those pre-releases can't build against main.
Changes, in the adoption PR or before it
nix/monoprop.nix, the comment aboveversion: "VERSION records the latest stable release" becomes "the release bot keeps VERSION in step with the release tags; onmainit holds the next series asX.(Y+1).0.dev0".README.md, "Nix sandbox builds read the latest stable release from the rootVERSIONfile": the same change.- Any developer doc that says to update
VERSIONat release time: remove the step. .github/workflows/deploy.yml: the release-version check stays (it moves from thereleaseevent to the tag push with the rest of the publish workflow); thechanged-versiondetection for PRs stays useful.
Related
tinite has the same file with no reader, and drops it instead (tinite#153). C++ code in Python builds should take its version from SKBUILD_PROJECT_VERSION_FULL, as cpp/CMakeLists.txt here already does.
- 主要言語
- C++
- スター
- 52
- フォーク
- 2
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 22
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Algorithmiq/monoprop のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Algorithmiq/monoprop#193 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Algorithmiq/monoprop#192 ·
メンテナーはふだん 1 日以内に返信
-
bug performance
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Algorithmiq/monoprop#191 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Algorithmiq/monoprop#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Algorithmiq/monoprop#429 ·
メンテナーはふだん 1 日以内に返信
Algorithmiq/monoprop の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
simnJS/AnyPS5#735 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:tests kind:test
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
? - Needs Triage bot_watch bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA/cudf-spark-jni#5594 ·
メンテナーはふだん 1 日以内に返信
-
Branch-master
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TrinityCore/TrinityCore#32177 ·
メンテナーはふだん 10 日以内に返信