Skip to content

Allow the builder to be aware of package_index properties #173

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

Closed
wants to merge 13 commits into from

Conversation

facchinm
Copy link
Member

@facchinm facchinm commented Aug 1, 2016

AVR core 1.6.12 introduced a new toolchain but the mighty builder still had no clue about it. There is no magic in there, simply some key->value substitution which accidentally lead to a massive breakage, both for arduino avr core and for 3rd party cores.

To solve this issue in a sane way (but without providing a full package manager yet) this PR introduces a library (json_package_index) which parses the provided package_index folder, extracts the useful information from there and uses these information to avoid breaking the build.

Passing -package-index flag with a folder will allow the builder to know which version is needed by any core.

I'll update this PR as soon as we'll start testing it massively (a link to the IDE PR builds will come soon)

@facchinm facchinm force-pushed the json_parsing_properties branch from a77447d to f9da823 Compare August 1, 2016 16:30
@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/arduino-builder/arduino-builder-173.zip

ℹ️ To test this build:

  1. Replace arduino-builder binary (you can find it where you installed the IDE) with the provided one

@facchinm
Copy link
Member Author

facchinm commented Aug 1, 2016

IDE builds will appear here arduino/Arduino#5197

@facchinm
Copy link
Member Author

facchinm commented Aug 2, 2016

Putting this PR in standby until we understand the future architecture of IDE related tools

@facchinm facchinm added the frozen label Aug 2, 2016
@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/arduino-builder/arduino-builder-173.zip

ℹ️ To test this build:

  1. Replace arduino-builder binary (you can find it where you installed the IDE) with the provided one

Works with folders, filenames and urls
Will be used to pass folders containing package_index jsons
will map into "packager" field of the json
Only works if a valid package_index json has been provided
Inherits all tools from latest version of a specific core

"coreDependencies": [
  {
    "packager": "arduino",
    "name": "avr"
  }
]
The coreDependency resolution will search for most recent installed core.
The test has been moved to allow populating the context
This leaves non-derived cores (like MightCore or Cosa) the freedom to specify their own tools (overriding avr 1.6.12 lto requirement)
@cmaglie cmaglie force-pushed the json_parsing_properties branch from f9da823 to 2eb6732 Compare January 11, 2018 11:09
@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/arduino-builder/arduino-builder-173.zip

ℹ️ To test this build:

  1. Replace arduino-builder binary (you can find it where you installed the IDE) with the provided one

@facchinm
Copy link
Member Author

Superseded by arduino-cli

@facchinm facchinm closed this Sep 20, 2018
@rsora rsora added the status: on hold Do not proceed at this time label Sep 22, 2021
@per1234 per1234 removed the frozen label Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: on hold Do not proceed at this time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants