adafruit / circup

CircuitPython library updater.
MIT License
129 stars 37 forks source link

Local Directory (Non-Device) Commands Are Broken #218

Closed FoamyGuy closed 6 months ago

FoamyGuy commented 6 months ago

182 added --board-id and --cpy-version arguments for the purpose of using circup to install / remove libraries in a local project directory on a host PC rather than a microcontroller device. Before these arguments were added it was necessary to have a fake boot_out.txt file in the project directory in order to use circup, but these arguments allow you to override the values that are ordinarily read from boot_out.txt

This functionality is currently broken, likely from changes during one of the recent refactors of this library.

When you specify the override values:

circup --path fake_project/ --cpy-version 8.0.0 --board-id hello install adafruit_display_text

The utility reports finding the device and gets ready to install libraries on it, but then quits with an error about not being able to find boot_out.txt:

Found device at fake_project/, running CircuitPython 8.0.0.
A newer version of CircuitPython (9.0.4) is available.
Get it here: https://circuitpython.org/board/hello
Searching for dependencies for: ['adafruit_display_text']
Ready to install: ['adafruit_bitmap_font', 'adafruit_display_text']

Missing file boot_out.txt on the device: wrong path or drive corrupted.

I'm working on a fix for this.