Skip to content

distribute with script modules is not idempotent #99

@jonahbeckford

Description

@jonahbeckford

The sequence of distribute below and in https://github.com/diskuv/dk/actions/runs/22431807408/job/64952133689 should not fail:

$ find etc/dk/i -mindepth 1 -type f -exec rm -f {} +
DEPENDENCIES=CommonsBase_Std

# .github/scripts/import-latest-gh-releases.sh -m -r 'diskuv/dk' $DEPENDENCIES
$ ./dk0 --trial import-github-l2 --repo diskuv/dk --tag 2.5.202602260544+CommonsBase-Std --outdir /Volumes/ExtremeSSD/Source/dk/etc/dk/i/

$ rm etc/dk/v/CommonsBase_Std/*.values.*

$ ./dk0 --data-dir t/d3 --trial -nosysinc -I etc/dk/i -I etc/dk/v  --cell dk0=/home/runner/work/dk/dk --verbose distribute CommonsBase_LLVM-1 --no-tracestore --library 'CommonsBase_LLVM@2.5.202602260609' -o Release.Darwin_x86_64:CommonsBase_LLVM.Toolchain.MinGW@21.1.8+rev-20251216
[lua]: Registering script module `CommonsBase_Build.CMake0@3.25.3`
[lua]: Registering script module `CommonsBase_Dotnet.SDK@10.0.100-rc.2.25502.107`
[lua]: Registering script module `NotGoogleDev_OR.Tools@9.15.0`
[lua]: Registering script module `NotInriaCaml_Std.Wenv@0.1.0`
[progress]: dla CommonsBase_Std:CommonsBase_Std-31.x1jjtlh4q.tracestore size 204273 ...
...
spawn: /usr/bin/tar -xJf ../../../../../c/b.1/sub/tvtg64gahpyf4aaxtcuxenmfzy/llvm-mingw.tar.xz
spawn: ../../../../../c/b.1/sub/o5hadwi66s5arznuh2xtkfxbe4/7zz.exe a ../../o/Release.Agnostic/output.zip
spawn: ../../../../../c/b.1/sub/z24gv2uwyypfcoanghdzpafk3e/coreutils.exe rm -f ../../o/Release.Darwin_x86_64/ignored.zip
[up-to-date] CommonsBase_LLVM.Toolchain.MinGW@21.1.8+bn-20250101000000.rev-20251216 -s Release.Darwin_x86_64 := object:oikrutoionozqbtvlmohbiccc3ua7muiplis75yqw3nfxwzsw4hsa:CommonsBase_LLVM.Toolchain.MinGW@21.1.8+rev-20251216

$ ./dk0 --data-dir t/d3 --trial -nosysinc -I etc/dk/i -I etc/dk/v  --cell dk0=/home/runner/work/dk/dk --verbose distribute CommonsBase_LLVM-2 --no-tracestore --library 'CommonsBase_LLVM@2.5.202602260609' -o Release.Darwin_arm64:CommonsBase_LLVM.Toolchain.MinGW@21.1.8+rev-20251216
[lua]: Registering script module `CommonsBase_Build.CMake0@3.25.3`
[lua]: Registering script module `CommonsBase_Dotnet.SDK@10.0.100-rc.2.25502.107`
[lua]: Registering script module `NotGoogleDev_OR.Tools@9.15.0`
[lua]: Registering script module `NotInriaCaml_Std.Wenv@0.1.0`
[error 26e22054]: Could not run dk0.

    ╭──▶ 1.1-1.1
    │
  1 │dk0 distribute CommonsBase_LLVM-2 --no-tracestore --library CommonsBase_LLVM@2.5.202602260609 -o Release.Darwin_arm64:CommonsBase_LLVM.Toolchain.MinGW@21.1.8+rev-20251216
    • 
    •╰╸ Could not get rule because the rule `CommonsBase_Std.Extract.F_TarToZip@0.1.0` does not exist.
    •
    │ Hint: Did you mean the rule `CommonsBase_Build.CMake0.F_Build@3.25.3`?
────╯

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