Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

fix: pass pre-release flags properly to subcommands#847

Merged
mattjohnsonpint merged 4 commits into
mainfrom
mjp/hyp-3371-modus-cli-pre-release-bugs
May 17, 2025
Merged

fix: pass pre-release flags properly to subcommands#847
mattjohnsonpint merged 4 commits into
mainfrom
mjp/hyp-3371-modus-cli-pre-release-bugs

Conversation

@mattjohnsonpint

Copy link
Copy Markdown
Contributor
  • modus new --prerelease should forward the pre-release flag to the sdk install subcommand when needed
  • modus dev should not require --prerelease if the app is already using a pre-release SDK version

Versioning this as 0.18.0 to align with current cycle

@mattjohnsonpint mattjohnsonpint requested review from a team and Copilot May 17, 2025 00:42
@linear

linear Bot commented May 17, 2025

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 ensures that the pre-release flag is properly passed to subcommands for the "new" and "dev" commands, addressing issues with SDK installation and runtime version retrieval when dealing with pre-release SDK versions.

  • In the "new" command, the pre-release flag is now conditionally appended to the SDK installation arguments.
  • In the "dev" command, the pre-release check is unified into a single variable and used consistently when determining runtime versions.
  • The CHANGELOG has been updated to document the changes in version 0.18.0.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
cli/src/commands/new/index.ts Updated to conditionally forward "--prerelease" to the SDK install subcommand.
cli/src/commands/dev/index.ts Unified pre-release flag usage for runtime version checks.
CHANGELOG.md Added changelog entry for the fix.

Comment thread cli/src/commands/new/index.ts
@trunk-io

trunk-io Bot commented May 17, 2025

Copy link
Copy Markdown

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) May 17, 2025 00:43
@mattjohnsonpint mattjohnsonpint disabled auto-merge May 17, 2025 00:45
@mattjohnsonpint mattjohnsonpint marked this pull request as draft May 17, 2025 00:45
@mattjohnsonpint

Copy link
Copy Markdown
Contributor Author

found another cli thing.... hold this for now

@mattjohnsonpint mattjohnsonpint marked this pull request as ready for review May 17, 2025 01:02
@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) May 17, 2025 01:02
@mattjohnsonpint mattjohnsonpint merged commit 3222dd4 into main May 17, 2025
@mattjohnsonpint mattjohnsonpint deleted the mjp/hyp-3371-modus-cli-pre-release-bugs branch May 17, 2025 01:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants