-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Move built-in examples to dedicated repository #10734
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
Conversation
A dedicated repository for the examples will make it easier for them to be built in to arbitrary development tools. It will make it easier to use them for compilation testing of boards platforms. It provides a dedicated location for issue reports and pull requests that are specific to the examples. It continues the work done by moving the AVR and SAM boards platforms and built-in libraries towards making the arduino/Arduino repository solely a place to host the GUI code of the Arduino IDE.
This PR broke the build for me. I get:
The .zip file is downloaded properly, but it looks like it is not unzipped. I suspect this is because the Note sure what the right fix here is, but |
The build works with no problems for me... The folder that is checked is not |
If i do
Nope, it does check The unzip rule checks for the Line 939 in 7a9234c
Which gets set if the Line 887 in 7a9234c
And Line 239 in 7a9234c
Hence, if I do Other uses of unzipFor libraries, the Lines 295 to 301 in 7a9234c
For the Wifi updater tool, AVR core, docs, appbundler, ... the unzip puts it in the final location right away, without further copy or move. I think this means when these get a version bump, the new version is downloaded, but not unpacked and otherwise ignored. Lines 308 to 313 in 7a9234c
For the java libraries (libastylej, liblistserials), the Lines 493 to 499 in 7a9234c
There's some more uses, which I didn't check. So even though those other uses do have their problems (notably unpacking and copying when not really needed), they do not have the same problem as the examples, that the build breaks when updating to a new version. |
Hi @matthijskooijman. I apologize if my change to the build system caused you some difficulties. I've been trying to reproduce the issue, but have not been able to. Here's what I've done:
Every build works as expected for me. Would you mind sharing a set of steps I can use to reproduce the bug so I can investigate this further? |
No worries, that's just how progress works :-) In your steps, you run Here's a modified version of your commands without clean, that shows the breakage I meant:
I'm not 100% sure about the last failure (I forgot the build before the last checkout and just did a clean initially, so I ended up with a succesful build at first and had go back and remove the 1.8.13 stuff, but I think that would also happen with the above steps). |
A dedicated repository for the examples will make it easier for them to be built in to arbitrary development tools. It will make it easier to use them for compilation testing of boards platforms. It provides a dedicated location for issue reports and pull requests that are specific to the examples. It continues the work done by moving the AVR and SAM boards platforms and built-in libraries towards making the arduino/Arduino repository solely a place to host the GUI code of the Arduino IDE.
In addition to the example sketches, I also moved the "examples-formatter" script and configuration file to the examples repository:
https://github.com/arduino/arduino-examples
I have updated the build system to pull the examples from the dedicated repository, using the same approach as done for the bundled libraries.
One of the unit tests was using the Blink sketch from the examples, so I have moved that sketch into
app/testdata/sketches
and updated the test accordingly.I have updated documentation to reflect the change, including following the precedent of what was done for the boards packages by adding a readme to the now empty build/shared/examples folder.
All Submissions: