Skip to content

Version compatibility#274

Open
martinshub-tech wants to merge 2 commits into
Nanle-code:masterfrom
martinshub-tech:version-compatibility
Open

Version compatibility#274
martinshub-tech wants to merge 2 commits into
Nanle-code:masterfrom
martinshub-tech:version-compatibility

Conversation

@martinshub-tech
Copy link
Copy Markdown

this pr closes #247

Pull Request: Add version compatibility checks for templates

Summary

Implemented robust CLI version compatibility validation for template selection in starforge new contract. This prevents scaffolding projects with incompatible templates.

Changes

  • Updated src/commands/new.rs to replace strict compatibility assertion with detailed match handling.
  • Added user‑friendly error messages for:
    • Template requires newer StarForge version.
    • Template does not support the current newer CLI version.
    • Malformed version metadata.
  • Early exit on incompatibility to avoid partial scaffolding.

Verification

  • Manual testing of starforge new contract with templates requiring different version ranges confirms correct warnings.
  • Existing functionality unchanged for compatible templates.

Branch: master (fork) tracking fork/master.
Upstream: origin/master (Nanle-code/StarForge).

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@martinshub-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add template compatibility warnings during project scaffolding

1 participant