Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve tiapp sdk-version handling #693

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

cb1kenobi
Copy link
Contributor

The CLI will attempt to load the tiapp.xml and parse the <sdk-version> regardless of the command causing an error if the SDK version is not installed.

This PR fixes this behavior to only enforce the SDK not being installed for SDK commands. This means you can now run ti config, ti sdk, and ti setup with a tiapp.xml containing an unknown SDK version.

Example of reference to SDK version that is not installed:
image

Example of no SDKs installed:
image

Copy link
Contributor

@m1ga m1ga left a comment

Choose a reason for hiding this comment

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

Functionality works fine.

  • ti sdk install will install the SDK now (before: error)
  • ti setup will show the setup menu (before: error)
  • ti config will show the config (before: error)
  • ti clean will show a better error message

tested on Linux.

@cb1kenobi cb1kenobi merged commit 70adf9e into main Oct 4, 2024
19 checks passed
@cb1kenobi cb1kenobi deleted the improve-sdk-version branch October 4, 2024 13:37
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.

2 participants