Skip to content

unity-cli@v2.0.0#75

Merged
StephenHodgson merged 96 commits intomainfrom
dev/2.0.0
May 3, 2026
Merged

unity-cli@v2.0.0#75
StephenHodgson merged 96 commits intomainfrom
dev/2.0.0

Conversation

@StephenHodgson
Copy link
Copy Markdown
Member

@StephenHodgson StephenHodgson commented May 3, 2026

  • Added upm cli integration and commands
  • Added additional unity utp log handling
  • Fix Unity releases API rows with missing version field

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
Copilot AI review requested due to automatic review settings May 3, 2026 18:02
Comment thread src/upm-cli.ts Fixed
Comment thread src/upm-cli.ts Fixed
Comment thread src/upm-cli.ts Fixed
Comment thread src/utilities.ts Fixed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 UpmCli implementation 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, and install-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.

Comment thread src/cli.ts
Comment thread src/cli.ts
Comment thread src/utilities.ts Outdated
Comment thread src/upm-cli.ts Outdated
Comment thread README.md Outdated
Comment thread src/cli.ts Outdated
Resolve version to 2.0.0 and combine unity-logging imports (UTP summary helpers + isStdoutTTY).
Comment thread src/utilities.ts Fixed
@StephenHodgson StephenHodgson merged commit 3c78710 into main May 3, 2026
6 of 10 checks passed
@StephenHodgson StephenHodgson deleted the dev/2.0.0 branch May 3, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants