Open egnor opened 3 years ago
In this case what you are seeing being auto-installed are the just the internal tools arduino-cli
uses for auto-discovery, and the index files for platforms and libraries. This is out of the control of ardi
as it's managed by arduino-cli
; however, I've noticed that arduino-cli
does not re-download the tools if they already exist in the data directory. As for user defined project platforms and libraries, I'd rather keep it simple for now and let the user run install
when needed. I'll keep this issue open though as I may revisit this later.
That makes sense, and it's no big deal for sure. The status quo does have some arguments in favor:
The status quo does mirror other similar systems. (Some do auto-install, like npx, but that's a bit of an outlier; "npm run" does require "npm install" for example.)
The status quo keeps the operation local only (at least as far as ardi is concerned) so when you're flashing arduinos on an airplane flight*, it doesn't surprise you by trying to download something. (Though I gather arduino-cli will assume it has network available as needed?)
On Sat, Jul 10, 2021, 10:15 PM Rob Gonnella @.***> wrote:
In this case what you are seeing being auto-installed are the just the internal tools arduino-cli uses for auto-discovery, and the index files for platforms and libraries. This is out of the control of ardi as it's managed by arduino-cli; however, I've noticed that arduino-cli does not re-download the tools if they already exist in the data directory. As for user defined project platforms and libraries, I'd rather keep it simple for now and let the user run install when needed. I'll keep this issue open though as I may revisit this later.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robgonnella/ardi/issues/62#issuecomment-877742965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACEKC6QAIF5WHS4NWRBAUDTXESFNANCNFSM475PES6A .
Ha!! I bet that got a look or two from flight attendants! ✈️ 🤖 😆
Running
ardi attach-and-watch
seems to install libraries if needed, but if a platform isn't installed, there's an error:Of course this is trivially remedied with a run of
ardi install
but it would be nifty forattach-and-watch
to just Do The Sensible Thing on a machine that hadn't previously been install-ed.(Of course, it should avoid pinging the network if things are installed, because it might be used offline.)