Skip to content

Migrate dev-cli check-version to use ganda repo check-version #16

Description

@StevenTCramer

Background

ganda repo check-version has been implemented as a shared cross-repo version-check command with two strategies:

  • --strategy git-tag — for GitHub releases (compares version to git tag)
  • --strategy nuget-search --package <id> — for NuGet releases (checks NuGet.org via dotnet package search)

Required changes for this repo

  1. Replace the inline check-version implementation (currently uses an HTTP call to v3-flatcontainer) with a thin delegation to ganda repo check-version:
int exitCode = await Shell.Builder("ganda")
  .WithArguments("repo", "check-version", "--strategy", "nuget-search",
    "--package", "TimeWarp.Terminal")
  .RunAsync(ct);

if (exitCode != 0) Environment.Exit(exitCode);
return Unit.Value;
  1. Remove the inline HttpClient NuGet check and any RepoRootFinder/AppContext.BaseDirectory fallback root discovery.

  2. Use Git.FindRoot() with no fallback anywhere root discovery is still needed.

Why

  • Replaces the fragile HTTP v3-flatcontainer check with the standardized dotnet package search approach
  • Eliminates divergent implementations across repos
  • Single place to fix/improve the check logic

Reference

  • ganda implementation: source/timewarp-ganda/endpoints/repo/repo-check-version-command.cs
  • Analysis: timewarp-ganda .agent/workspace/2026-02-24T00-00-00_check-version-duplication-analysis.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions