unity-cli@v2.0.0#75
Merged
StephenHodgson merged 96 commits intomainfrom May 3, 2026
Merged
Conversation
- add additional unity utp log handling
Limit the negative UTP profile to deterministic BuildErrors/CompilerErrors scenarios and make UTP artifact scanning skip missing directories so macOS jobs no longer fail with exit code 2 when no artifacts are produced.
Restrict the normal CI UTP profile to deterministic warning scenarios only so platform rows do not fail on edit/play NUnit-result heuristics while still exercising telemetry in stable paths.
Cap the Uninstall Editor cleanup step with a timeout and make it non-blocking so long-running uninstall operations on Windows do not stall matrix completion.
Use ripgrep when available but fall back to recursive grep in the hidden-failure guardrail so CI runners without rg do not fail with command-not-found.
Retry create-project up to three times with short backoff so intermittent macOS iOS project bootstrap failures do not fail the entire matrix job immediately.
- Added upm cli integration and commands
There was a problem hiding this comment.
Pull request overview
This PR adds first-class Unity Package Manager CLI support to unity-cli, including managed installation, version detection, package packing, and related utility helpers. It extends the existing Unity Hub/editor-oriented tooling with a new managed binary workflow for UPM operations.
Changes:
- Add a new
UpmCliimplementation with install/update/version/pack support and export it from the public API. - Add new CLI commands and docs for
upm-install,upm-version,upm-pack, andinstall-all-tools. - Extend shared utilities with HTTPS text fetching, SHA-256 hashing, native zip extraction, prompt helpers, and output redaction.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/upm-cli.test.ts | Adds basic unit tests for managed root and update-availability logic. |
| tests/https-and-hash.test.ts | Adds a digest test for the new SHA-256 file helper. |
| tests/exec-redaction.test.ts | Adds tests for the new redaction helpers used by command execution. |
| src/utilities.ts | Introduces new prompting/network/archive/redaction helpers and updates Exec/DownloadFile. |
| src/upm-cli.ts | Adds the new managed UPM CLI implementation and pack/install/version flows. |
| src/unity-logging.ts | Switches TTY detection to the shared helper. |
| src/unity-hub.ts | Replaces direct fetch usage with the new HTTPS text helper. |
| src/logging.ts | Expands sensitive-key scrubbing for debug logging. |
| src/index.ts | Re-exports the new UPM CLI module. |
| src/cli.ts | Adds new UPM-related commands plus the combined install command and deprecation messaging. |
| package.json | Bumps package version, updates engine requirement, and refreshes YAML dependency. |
| package-lock.json | Syncs lockfile with package metadata/dependency updates. |
| README.md | Documents the new commands and adds legal/disclaimer text. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Resolve version to 2.0.0 and combine unity-logging imports (UTP summary helpers + isStdoutTTY).
This was referenced May 3, 2026
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.
Uh oh!
There was an error while loading. Please reload this page.