The automatic postinstall recursively deletes the consumer’s project-level ./vendor directory, while the Hugo binary is stored under the package’s own vendor directory. This is a reachable install-time data-loss bug, so the package warrants a warning; the remaining inspected behavior matches downloading and checking Hugo.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Runs automatically through the package’s postinstall hook.
Impact
A project’s vendored dependencies or other files in ./vendor may be lost during installation.
Mechanism
lib/install.js resolves the consumer project root from INIT_CWD and recursively removes its vendor directory before installing or checking Hugo. The binary wrapper uses a different vendor directory inside the package.
Evidence
package.jsonlib/install.jslib/index.js<consumer project root>/vendorhugo-bin/vendor