Repository navigation
Provision the pinned SDK and analysis tools from the checkout launcher - #24
Merged
Kristof Roomp (mcroomp) merged 2 commits intoNov 22, 2026
Merged
Conversation
TlaLink.ps1 now makes a fresh checkout usable without separate setup: - When neither .tools\dotnet\<version>\distribution nor the PATH host has the exact global.json SDK, the launcher downloads it from the official .NET release metadata, verifies the published SHA512 and installs it into the ignored .tools cache. - Before any command other than `toolchain`, it runs `toolchain restore` for each pinned analysis tool (java, tlc, dafny, apalache, p) whose entrypoint is missing from the checkout's .tools. - TLALINK_AUTO_PROVISION=false (or 0) disables both steps. The CLI's analysis commands still never install tools; SDK discovery without -Provision remains nonmutating. `toolchain restore --directory` now defaults to the checkout's .tools when run from a checkout build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
`accept --output .\artifacts\receipts\x.json` failed with a raw TL900 path error when the receipts directory did not exist yet. Files.WriteNew now creates the containing directory, keeping its never-overwrite contract. This covers every single-file --output (accept, expand, links, inspect-source, symbols). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Kristof Roomp (mcroomp)
deleted the
feature/launcher-auto-provisioning
branch
November 22, 2026 10:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The checkout launcher (
TlaLink.ps1) now provisions what it needs on first use, so a fresh clone works without separate setup steps. Downloads go into the checkout's ignored.toolscache..tools\dotnet\<version>\distributionnor the PATH host has theglobal.jsonSDK, the launcher downloads it.builds.dotnet.microsoft.com)..tools\dotnet\<version>\distribution. Nothing machine-wide changes.toolchain, the launcher runstoolchain restorefor each pinned tool (java, tlc, dafny, apalache, p) whose entrypoint is missing from.tools.TLALINK_AUTO_PROVISION=false(or0) disables both steps and keeps setup fully explicit.toolchain restore --directorynow defaults to the checkout's.toolswhen run from a checkout build. A deployed tool still needs--directory.Files.WriteNewnow creates a missing parent directory, soaccept --output .\artifacts\receipts\x.jsonno longer fails with a raw TL900 path error on first use. Its never-overwrite contract is unchanged, and the fix covers every single-file--output.The CLI's analysis commands still never install tools, and SDK discovery without
-Provisionstays nonmutating. AGENTS, README, REFERENCE and the scripts README now describe the launcher behaviour.Validation
tests\Toolchain.Tests.ps1: 10/10 passed. New tests cover the opt-out, an unpublished SDK failing without leaving an installation, and missing-tool detection.--core: 470/470 passed, including new tests for the default restore directory and output directory creation..toolswith no 10.0.204 SDK on the machine,.\TlaLink.ps1 doctor --project .\examples\Workflow\tlalink.project.json --scenario lanesprovisioned the SDK plus all five tools and passed in about 2 minutes. A warm rerun took about 4 seconds with no provisioning.