Skip to content

Added basic "deprecation" support for platforms #11508

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

Merged
merged 5 commits into from
May 10, 2021

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented May 10, 2021

The IDE now supports a deprecated field in the package_index.json at the platform release level:

    {
      "name": "arduino",
      "maintainer": "Arduino",
      "websiteURL": "http://www.arduino.cc/",
      "email": "packages@arduino.cc",
      "help": {
        "online": "http://www.arduino.cc/en/Reference/HomePage"
      },
      "platforms": [
        {
          "name": "[DEPRECATED - Please install standalone packages] Arduino Mbed OS Boards",
          "architecture": "mbed",
          "version": "2.0.2",
          "deprecated": true,             <--------
          "category": "Arduino",
          "url": "http://downloads.arduino.cc/cores/staging/ArduinoCore-mbed-2.0.2.tar.bz2",
          "archiveFileName": "ArduinoCore-mbed-2.0.2.tar.bz2",
          "checksum": "SHA-256:51b261ca0b11cd98f6e91d660ef2338e462c45b2ece20b527b74c13b51dbcad2",

if the latest version of a platform is marked deprecated then the whole platform is labeled as deprecated and moved to the bottom of the list.

image

this should discourage users from installing it, BTW no other actions are done to prevent it.

@cmaglie cmaglie requested a review from ubidefeo May 10, 2021 08:09
Copy link

@rsora rsora left a comment

Choose a reason for hiding this comment

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

Tested on Win and Linux and it's ok

@cmaglie cmaglie merged commit 8ceb6c2 into arduino:master May 10, 2021
@cmaglie cmaglie added this to the Release 1.8.14 milestone May 10, 2021
@cmaglie cmaglie deleted the deprecation_field branch May 10, 2021 14:06
@rsora
Copy link

rsora commented May 10, 2021

(Tested successfully on Mac as well BTW 😸 )

fpistm added a commit to stm32duino/BoardManagerFiles that referenced this pull request Jun 28, 2021
fpistm added a commit to stm32duino/BoardManagerFiles that referenced this pull request Jul 15, 2021
Use deprecated field at the platform release level

Since:
  arduino/Arduino#11508

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
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