A CLI installed with go install reports version dev: mismatch warning on every connect, and probe_version pins are refused
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading internal/cli version handling and the release workflow or Makefile flags that set Version; then inspect the version checks in internal/probelink and how probe_version is enforced. The issue describes several possible fixes but does not choose one, so first establish the intended behavior for binaries installed with go install. Done means that behavior is covered for version warnings, compatibility checks, and pinned versions.
索引モデルが issue の本文から書いたものです。
説明
What happens
A CLI installed with go install github.com/alphawavesystems/flutter-probe/cmd/[email protected] reports its version as dev:
$ probe version
probe version dev
internal/cli.Version is "dev" unless the linker sets it. The release workflow and the Makefile do (-X .../internal/cli.Version=...); go install does not. The binary does carry the module version in its build information (go version -m shows mod github.com/alphawavesystems/flutter-probe v0.27.0), and nothing in internal/cli, internal/probelink or cmd reads it (debug.ReadBuildInfo is not used).
What the version string is used for
Measured by calling the functions with dev:
- Agent version warning.
probelink.VersionMismatchWarning("dev", "0.26.1")returnsversion mismatch: CLI vdev <-> agent v0.26.1 — this combination is untested ..., so ago installCLI prints that warning on every connect. The doc comment of the function says an unknown or unparsable version produces no warning, but the code only skips an empty string;devis compared as text. - Major check.
MajorVersionIncompatible("dev", "0.26.1")is false:devdoes not parse, so it never blocks the connection (as its comment says). probe_versioninprobe.yaml. A project that pinsprobe_version: 0.27.0is not satisfied bydev(ParseProbeVersion("0.27.0")thenSatisfied("dev")is false), soprobe teststops with "the installed CLI is dev, but probe.yaml requires probe_version 0.27.0. No test was run." A go-installed CLI cannot run a project that pins the version, even when it is that release.
Not changed
No fix proposed here. Options for the owner of the CLI: read the module version from debug.ReadBuildInfo when Version is dev; treat dev as unknown in VersionMismatchWarning (matching its comment); or document that go install builds report dev. The installation page's Option C (go install) is the place where users meet it.
- 主要言語
- Go
- スター
- 6
- フォーク
- 3
- 平均マージ
- 6時間 28分
- マージ済み PR(30日)
- 362
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AlphaWaveSystems/flutter-probe のほかの issue
-
agent: is checked on a wrapper holding several checkables answers from the first one in tree orderオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AlphaWaveSystems/flutter-probe#865 ·
メンテナーはふだん 1 日以内に返信
-
area/cli bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
AlphaWaveSystems/flutter-probe#424 ·
メンテナーはふだん 1 日以内に返信
-
area/docs documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AlphaWaveSystems/flutter-probe#409 ·
メンテナーはふだん 1 日以内に返信
-
Dial timeout error should say how long it waited and name the timeout setting対応中かも @jay23606 が 2 日前に担当しました。 オープンarea/cli bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AlphaWaveSystems/flutter-probe#408 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
AlphaWaveSystems/flutter-probe#886 ·
メンテナーはふだん 1 日以内に返信
AlphaWaveSystems/flutter-probe の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IBM-Cloud/terraform-provider-ibm#7115 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
fluxcd/notification-controller#1441 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
volcengine/volcengine-go-sdk#163 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
OneBusAway/maglev#2145 ·
メンテナーはふだん 2 日以内に返信
-
priority/medium status/ready type/chore
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
discobox-ai/discobox#1357 ·
メンテナーはふだん 1 日以内に返信