Skip to content

fix(image): stop the mise install tracking of the build #20

Closed

Description

@dan-petty

Problem

mise install sends one request to https://mise-versions.jdx.dev/t for each tool that it installs, with the tool, the version, the OS and the architecture. The image build installs each tool of mise.toml on each platform, on each run. The image stops the telemetry of its tools for each consumer, but its own build still sends these requests.

DO_NOT_TRACK=1 does not stop them. The mise setting use_versions_host_track controls them. A test on 2026-11-20 with mise 2026.11.11, in the pinned sid image: with MISE_USE_VERSIONS_HOST_TRACK=0, mise install --locked hadolint installed the tool and sent no request to that URL. With no setting, it sent two.

Change

The mise-tools stage of the Dockerfile sets MISE_USE_VERSIONS_HOST_TRACK=0 beside the other mise variables.

Proof

A local run of the mise-tools stage with MISE_LOG_LEVEL=trace shows no request to mise-versions.jdx.dev/t.

Alternatives check of 2026-11-20: in-use.
The item already names this tool.
Tool: jdx/mise (https://github.com/jdx/mise), MIT, last activity 2026-11-20, maintained.
Reason: Searches found no separate tool; the need is met by the version manager's own use_versions_host_track setting, which the issue's traced test shows removes the requests, and the project already uses that tool.

Covers:

  • Environment variable that turns off version-host tracking requests
  • Applies to every tool installed by the locked install command
  • Issue's traced run shows zero requests with the variable set

Lacks:

  • No build-time assertion that the variable stays in the stage
  • Must be set per platform and per stage separately
  • DO_NOT_TRACK alone does not stop these requests

Proposed design

Problem statement

mise install sends one request to https://mise-versions.jdx.dev/t for each tool that it installs. The image build runs this install for every tool of mise.toml on every platform on every run. The image turns off the telemetry of its tools for its consumers, but the build itself still sends these requests, and DO_NOT_TRACK=1 does not stop them. The change exports MISE_USE_VERSIONS_HOST_TRACK=0 in the mise-tools stage of the Dockerfile, beside the other mise variables.

Acceptance criteria

Requirement: Build stage disables version-host tracking

The mise-tools stage of the Dockerfile SHALL export MISE_USE_VERSIONS_HOST_TRACK=0 beside the other mise variables.

Scenario: Traced build of the mise-tools stage

  • WHEN I run docker buildx build --no-cache --progress=plain --target mise-tools . after adding MISE_LOG_LEVEL=trace to the stage's export line for the run.
  • THEN The build log shows no request to mise-versions.jdx.dev/t and the build exits 0.

Requirement: Locked install still installs every tool

The mise-tools stage SHALL keep mise install --locked as the install command for every tool of mise.toml.

Scenario: Tool test of the built image

  • WHEN I run docker buildx build --builder default --no-cache --output type=cacheonly --build-arg DEVTOOLS=devtools:test --file test/tools.Dockerfile test.
  • THEN test/tools.sh prints the version of each tool of mise.toml and the build exits 0.

Requirement: Dockerfile passes hadolint

The Dockerfile MUST pass hadolint after the change.

Scenario: hadolint on the Dockerfiles

  • WHEN I run docker run --rm -v "$PWD:/src:ro" -w /src devtools:test hadolint Dockerfile test/*.Dockerfile.
  • THEN hadolint exits 0 with no findings.

Existing Tool Considered

The open, maintained tool jdx/mise (https://github.com/jdx/mise, MIT, last activity 2026-11-20) covers the need with its use_versions_host_track setting, set by MISE_USE_VERSIONS_HOST_TRACK=0; the issue body's alternatives block records the in-use verdict and states what the tool lacks. The change adds no code: one exported variable in the mise-tools stage covers every tool and both platforms of the build, and the live check in the acceptance criteria supplies the missing build-time assertion.

Key questions

  • Which mise setting controls the requests to mise-versions.jdx.dev/t?: mise's use_versions_host_track setting, set by the environment variable MISE_USE_VERSIONS_HOST_TRACK; MISE_USE_VERSIONS_HOST_TRACK=0 turns the requests off. The mise repository (https://github.com/jdx/mise, fetched 2026-11-20) is the tool's source and links its documentation at mise.jdx.dev. The build pins mise 2026.11.11 (Dockerfile:13), and the mise-tools RUN already exports the other mise variables (Dockerfile:30). [sources: https://github.com/jdx/mise]
  • How does the image build stop the mise version-host tracking requests?: Export MISE_USE_VERSIONS_HOST_TRACK=0 in the mise-tools stage of the Dockerfile, beside the other mise variables in the RUN at Dockerfile:30. (best practice) [sources: mise.toml:1, https://github.com/jdx/mise]
    • Chosen: Export MISE_USE_VERSIONS_HOST_TRACK=0 in the mise-tools stage. The pinned mise 2026.11.11 provides the use_versions_host_track setting, and the issue's traced test shows that the variable removes the requests; the variable applies to every tool of mise install --locked and to both platforms of the stage.
    • Rejected: Rely on DO_NOT_TRACK=1. DO_NOT_TRACK=1 is set only in the final devtools stage (Dockerfile:124), not in mise-tools, and the issue's traced test shows that it does not stop these requests.
    • Rejected: Set use_versions_host_track = false in mise.toml. That changes mise behavior for every developer who runs the repository's mise.toml, while the issue scopes the change to the image build; the build-only environment variable keeps it in the stage.
    • Rejected: Block mise-versions.jdx.dev in the build network. The build needs the network for the GitHub releases of the tools, and a block hides the cause; the setting stops the requests at the source.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    status/new
    value/medium
    effort/low
    source/agent
    scope/image
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 20, 2026
  4. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (6)

    Tools considered:

    Searches run:

    • mise install telemetry tracking disable Dockerfile build, results: 5
    • mise use_versions_host_track environment variable MISE_USE_VERSIONS_HOST_TRACK, results: 5
    • jdx mise github repository version manager, results: 5
    • mise-en-place settings use_versions_host_track documentation, results: 5
    • mise version manager use_versions_host_track disable telemetry, results: 5
    • "use_versions_host_track", results: 5

    Sources:

  5. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  6. added
    status/in-review
    and removed
    status/in-progress
    on Nov 20, 2026
  7. removed
    status/in-review
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/imagesource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions