Open b0be opened 3 years ago
hey @b0be I have reported this directly to @eddieespinal a while back, because he had zipped from the Mac's finder, the extra metadata added by the GUI gets into the zip file causing the CLI to complain. He sent me an updated file which I tested so I assumed it would be posted to the URL but it might have fallen through the cracks :)
Just yesterday this topic came back up in the team, and we're a bit divided wether to make it permissive or not. I lean towards enforcing good practices, and those metadata files have no place inside an archive. Mac OS is the only OS that does that and it's annoying to say the least :D
please, @eddieespinal , update the .zip
file for the ATMegaZero core 🙏🏼
It does install okay with the Arduino IDE, So I am ok. But perhaps you want to make it better.
$ arduino-cli core install ATMegaZero:avr Downloading packages... ATMegaZero:avr@1.0.0 already downloaded Installing ATMegaZero:avr@1.0.0... Error during install: installing platform ATMegaZero:avr@1.0.0: searching package root dir: no unique root dir in archive, found 'C:\Users\Bob_E\AppData\Local\Arduino15\tmp\package-415376511__MACOSX' and 'C:\Users\Bob_E\AppData\Local\Arduino15\tmp\package-415376511\atmegazero'
From: https://github.com/arduino/arduino-cli/issues/325 The problem is in the package layout; while the IDE performs some logic to address common problems like this one, the CLI hasn't anything like that. The fix should primarily consist in fixing the package but we're discussing internally whether we should do or not in the CLI what the IDE does. I personally think we shouldn't start adding exceptions or it'll be hard to draw a line when they'll become too many.