openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

Missing npm-shrinkwrap.json when updating Zigbee2MQTT #1735

Closed jzielke84 closed 1 year ago

jzielke84 commented 1 year ago

Issue information:

When installing the package through the openhabian-ui the following repository gets cloned:

$ sudo -u openhabian git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt 
+ sudo -u openhabian git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
Cloning into '/opt/zigbee2mqtt'...

However, when running the same command for updating the package, the following command is issues by the ui:

+ echo -e '\n\033[90;01m$ sudo -u openhabian git checkout HEAD -- npm-shrinkwrap.json \033[39;49;00m'

$ sudo -u openhabian git checkout HEAD -- npm-shrinkwrap.json 
+ sudo -u openhabian git checkout HEAD -- npm-shrinkwrap.json

This fails, because the file npm-shrinkwrap.json is not existing in the repository.

System information:

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
mstormi commented 1 year ago

@Larsen-Locke can you take a look please ?

Larsen-Locke commented 1 year ago

This was an old problem due to a change in zigbee2mqtt-repository, but it's corrected in the current version. Did you select "main" in menu "Select Branch"?

jzielke84 commented 1 year ago

@Larsen-Locke It was set to OpenHAB3 because of being recommended. I changed it to main and now the git pull works as expected. Thank you.