yaqwsx / jlcparts

Better parametric search for components available for JLC PCB assembly
https://yaqwsx.github.io/jlcparts/
MIT License
538 stars 51 forks source link

Command to download cached parts list is out of date #133

Open Randall-Scharpf opened 2 months ago

Randall-Scharpf commented 2 months ago

The first command is currently listed as wget https://yaqwsx.github.io/jlcparts/data/cache.zip https://yaqwsx.github.io/jlcparts/data/cache.z0{1..8}

To get it running, I had to run wget https://yaqwsx.github.io/jlcparts/data/cache.zip https://yaqwsx.github.io/jlcparts/data/cache.z0{1..9} https://yaqwsx.github.io/jlcparts/data/cache.zip https://yaqwsx.github.io/jlcparts/data/cache.z{10..15}

It looks like the issue is that more files representing parts of the cache have been added as the data has grown, perhaps? Not totally sure, just know this fixed the error with extraction. It might make sense to have the command sequence download a list of URLs to fetch and then send those to wget so that changes to the count of cache parts don't require continual updates to the development instructions, but that would add a few commands to the setup process.

Looking forward to getting this running and making a few local mods that I need, cheers!

yaqwsx commented 2 months ago

Yeah, the instructions are outdated. Follow the CI workflow: https://github.com/yaqwsx/jlcparts/blob/master/.github/workflows/update_components.yaml