particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

bug/sc-132028/compiles-for-archived-version-is-not-working #777

Closed hugomontero closed 1 week ago

hugomontero commented 1 week ago

Description

Allow compile command use archived device os versinos

How to Test

Before changes:

  1. Attempt to compile a project against an archived version: npm start -- compile argon --target 0.8.0-rc.20

outcome compilation should fail with an error indicating that the target is not valid

Compile failed: Invalid build target version.
Valid targets:

After changes:

  1. Pull down the branch: git pull && git checkout bug/sc-132028/compiles-for-archived-version-is-not-working
  2. Attempt to compile a project against an archived version: npm start -- compile argon --target 0.8.0-rc.20

outcome You should be able to compile your project without issues

Related Issues / Discussions

https://app.shortcut.com/particle/story/132028/compiles-for-archived-version-is-not-working-on-cli

Completeness