Version only suggests major bump in independent mode
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, typescript
- 領域
- release
調査の方向性
提供された lerna.json、workspace レイアウト、コミットシーケンスを使って、まず問題を再現します: breaking release を確認し、その後、タグ v2.0.0 の後に fix のみの release が行われることを確認します。independent モードと Conventional Commits における lerna version のフローを追跡します; 完了条件は、fix のみの変更が影響を受ける package に対する patch の引き上げを示唆することです。
索引モデルが issue の本文から書いたものです。
説明
Current Behavior
I'm having some tests with Lerna to check if we can easily use it on our monorepo project (ionic frontend + nestJS backend as a main gateway and 17 independent microservices).
So far, everything seemed to be working as expected with conventional commits until I performed a major update test.
Since then, Version only suggests a major bump for all changed packages, even if the release only contains a 'fix' commit.
My Git logs :
Lerna version bump suggestion :
As we can see, I only committed a fix for the chatbot microservice since the last release (tag v2.0.0), but 'version' suggests a major bump for the impacted microservice (3.0.0 instead of 2.0.1)
Expected Behavior
Suggest a patch bump
Steps to Reproduce
- Configure a mono repo project with npm workspaces
- Configure lerna version with independent mode, noPush and noGitTagVersion
- Do a commit with a breaking change
- Execute lerna version
- Check that version suggests a major update and confirm
- Manually commit the release and create new tag
- Do a commit with a fix
- Execute lerna version
- Check the lerna suggestion (should be a patch)
Configuration
lerna.json
{
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
"npmClient": "npm",
"version": "independent",
"packages": [
".",
"user-frontend/",
"user-backend/main/",
"user-backend/microservices/*"
],
"ignoreChanges": [
"**/CHANGELOG.md",
"**/node_modules/**",
"**/package.json",
"**/*.md"
],
"command": {
"version": {
"conventionalCommits": true,
"push": false,
"gitTagVersion": false,
"gitRemote": "ul-origin",
"allowBranch": [
"test-lerna"
],
"message": "chore(release): publish new release",
"syncWorkspaceLock": true,
"changelogPreset": "angular"
}
}
}
project directory
multi/
├── CHANGELOG.md
├── lerna.json
├── package.json
├── ...
├── user-backend/
│ ├── ...
│ ├── main/
│ │ ├── ...
│ │ ├── CHANGELOG.md
│ │ └── package.json
│ └── microservices/
│ ├── microservice-1/
│ │ ├── ...
│ │ ├── CHANGELOG.md
│ │ └── package.json
│ ├── ...
│ └── microservice-17/
│ ├── ...
│ ├── CHANGELOG.md
│ └── package.json
└── user-frontend/
├── ...
├── CHANGELOG.md
└── package.json
main package.json
{
"name": "multi",
"version": "2.0.0",
"description": "",
"author": "",
"engines": {
"node": ">=16"
},
"private": true,
"license": "CECILL-2.1",
"workspaces": [
"user-backend/main",
"user-backend/microservices/*",
"user-frontend"
]
}
Environment
- 主要言語
- TypeScript
- スター
- 36k
- フォーク
- 2.3k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 54
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lerna/lerna のほかの issue
-
`lerna version` leaves `optionalDependencies` stale in `packages[""]` of leaf `package-lock.json`オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Packages with `-0` prerelease versions (e.g. `1.0.0-0`) are not treated as prereleases by `lerna version` and `lerna publish`対応中かも @lazerg が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GetStream/stream-chat-react#3467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vercel-labs/ui#1139 ·
メンテナーはふだん 1 日以内に返信
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bot:ai-assisted component:platform-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
midnightntwrk/platform-js#93 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100