qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.48k stars 37.73k forks source link

[Feature Request] Print install command before installing dependencies #24036

Open thomasa88 opened 3 days ago

thomasa88 commented 3 days ago

Feature Request Type

Description

I was setting up QMK using qmk setup and got the following question:

Ψ Userspace enabled: False
Ψ Git branch: master
Ψ Repo version: 0.25.9
Ψ - Latest master: 2024-07-03 06:35:26 +0900 (869b7d9ae6) -- Fix index EC Dolice (#24033)
Ψ - Latest upstream/master: 2024-07-03 06:35:26 +0900 (869b7d9ae6) -- Fix index EC Dolice (#24033)
Ψ - Latest upstream/develop: None
Ψ - Common ancestor with upstream/master: 2024-07-03 06:35:26 +0900 (869b7d9ae6) -- Fix index EC Dolice (#24033)
Ψ - Common ancestor with upstream/develop: None
Ψ CLI installed in virtualenv.
☒ Can't find avr-gcc in your path.
☒ Can't find avrdude in your path.
☒ Can't find dfu-programmer in your path.
☒ Can't find dfu-util in your path.
Would you like to install dependencies? [Y/n]

By reading the list of missing dependencies, I would expect only 4 packages to be on the package manager install line, but instead a lot more packages were installed:

Commandline: apt-get --quiet --yes install build-essential clang-format diffutils gcc git unzip wget zip python3-pip binutils-avr gcc-avr avr-libc binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi avrdude dfu-programmer dfu-util teensy-loader-cli libhidapi-hidraw0 libusb-dev
Commandline: apt-get --quiet --yes install picolibc-riscv64-unknown-elf gcc-riscv64-unknown-elf binutils-riscv64-unknown-elf

It would be nice if qmk lists what packages will be installed or shows the commands that will be run.

Ubuntu 24.04