Skip to content

make dist run twice makes a checksums file that lists itself #1034

Closed

Description

@David-Noble-at-work

make dist run twice in one checkout makes a checksums file that lists itself. At 6f600d68, checksums (Makefile:609-611) runs

cd dist && shasum -a 256 devlore-cli_$(VERSION)_*.* > devlore-cli_$(VERSION)_checksums.txt

On a second run the pattern also matches the checksums file the first run wrote, and the shell has emptied it before shasum reads it, so the new file carries a line for itself with the hash of an empty file (e3b0c442…). Archives from an earlier PLATFORM stay in dist/ too, and are listed with the new ones.

The release job checks out clean, so no published release carries the line; v0.1.0-dev.20261005021254's checksums file lists its six archives and nothing else. Found 2026-10-04 while building the faux channel for #1031, whose pull request script worked around it with make dist-clean.

Resolution

Ruled 2026-10-04: "Let's log it as a chore and fix the problem now. make dist should ensure the dist dir is empty or gone beforehand." make dist empties dist/ before it builds, so every run's output is that run's alone, and running it again makes the same files.

Plan and design documents

Kind Document
Plan docs/plans/chore/1034-make-dist-run-twice-makes-a.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions