gto show --plain truncates latest version values in global output table (breaks CLI parsing for multi-digit semver)

Open
#489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #490 by @ZivotJeKrasny — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, python
Domain
cli

Research direction

Start by reproducing gto show --plain and gto show <artifact> --plain with a multi-digit semver such as v0.100.0, then compare the global and service-specific output paths. Trace the global summary table formatting; done means global plain output preserves the complete version value or provides a guaranteed machine-readable alternative.

Written by the indexing model from the issue text.

Description

Summary

gto show --plain appears to truncate latest version values in the global summary table when the value is wide (e.g. v0.100.0 becomes v0.100.).

This causes downstream automation to pick an invalid version string if it parses the global --plain output.

Environment
  • GTO CLI installed via pip install gto
  • Repo using GTO tags like [email protected]
  • Observed on Linux in CI (GitHub Actions) and locally
What I observed

Given a real tag and registration:

  • Git tag exists: [email protected]
  • Service-specific output is correct:
    • gto show ml_agent --plain returns v0.100.0
  • Global output is truncated:
    • gto show --plain shows ml_agent v0.100. in latest

Example (global):

name         latest    #production    #staging
ml_agent     v0.100.   v0.98.1        v0.99.0
api          v0.63.0   v0.62.0        v0.62.0

Example (service-specific):

artifact    version    stage       created_at                 ref
ml_agent    v0.100.0               2026-03-18 22:33:04+00:00  [email protected]
...
Why this is a bug

--plain output is commonly used for machine parsing in CI scripts.
If the table truncates values, parsing $2 yields an invalid version (v0.100.), which then fails deployment/image resolution.

Expected behavior

One of the following:

  1. gto show --plain should never truncate field values (machine-safe output), or
  2. Provide a guaranteed machine-readable mode (e.g. JSON/CSV) for global and service-specific queries.
Actual behavior

Global gto show --plain table truncates latest for wider values, while service-specific output does not.

Minimal reproduction
  1. Have artifact versions including at least one with a wider semver like v0.100.0.
  2. Run:
    • gto show --plain
    • gto show <artifact> --plain
  3. Compare latest in global output vs version in service-specific output.
Workaround

Use service-specific query only:

  • gto show <service> --plain and parse rows there,
  • avoid parsing the global gto show --plain summary table.
Dominant language
Python
Stars
161
Forks
19
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/gto

All issues in iterative/gto

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.