-
Notifications
You must be signed in to change notification settings - Fork 4
Fix broken compile sketches workflow #61
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
base: main
Are you sure you want to change the base?
Conversation
Memory usage change @ 292af48
Click for full report table
Click for full report CSV
|
@per1234 Any idea why the linter cannot parse the sketch.yml files? Looks like it doesn't like the |
At the time Arduino Lint was written, the code in Arduino CLI was intended to be able to be used by other Go applications. For this reason, the approach taken in writing Arduino Lint was to attempt to leverage as much of the existing capabilities of Arduino CLI. Years later, Arduino CLI team made the decision that it would not be feasible to maintain a public Go API for all the internal capabilities of Arduino CLI. Almost the entire API was made internal; only for use within the Arduino CLI application itself. This made it impossible to update Arduino Lint's At that time, the The way forward for Arduino Lint is to remove all dependence on Arduino CLI. There is significant use of the Arduino CLI dependency in the Arduino Lint codebase, so doing that will not be trivial. Previously, although it was unfortunate to have an outdated dependency, the situation didn't impact Arduino Lint's functionality as the capabilities of the outdated Arduino CLI version were perfectly sufficient for Arduino Lint's needs. So hasn't been a compelling motivation to dedicate limited resources towards that work. Do you really feel that it is necessary to add sketch project files to the library? The feature is very valuable for development of standalone projects, but I am not at all convinced it makes sense to use it for library examples. Build profiles are not supported by Arduino IDE or Arduino Cloud Editor, so the majority of users won't be using the profiles. Example sketches are typically only actually used a few times as a quick "hello world", so even for the small subset of users working directly with Arduino CLI, the presence of a build profile is only a minor convenience at most. I'm not convinced it makes sense to add the files for the sake of the CI system, since this means the CI system is validating the sketches in a different context than the one that will be used by most users. So it seems to me that the presence of sketch project files would mostly only be useful to the library developers who are compiling the examples frequently, and only if those developers are using Arduino CLI directly. So the question of whether all these files should be added to the library really comes down to whether the library developers find the build profiles to be significantly useful. |
This PR fixes the incorrect configuration of the workflow and the profiles. There were multiple issues:
cli-compile-flags