refactor: Replace reflection-based Viper defaults with embedded template

Load the embedded config template as the Viper base so all keys are
registered upfront, enabling PMG_* env vars to work regardless of
whether a key exists in the user's config file.
This commit is contained in:
Sahilb315
2026-04-15 20:06:53 +05:30
parent 7821c40312
commit f117627e3c
3 changed files with 10 additions and 57 deletions
+1 -3
View File
@@ -55,9 +55,7 @@ proxy_install_only: false
#
# The purl is the package identifier and the reason is the reason for trusting the package.
# PURL specification: https://github.com/package-url/purl-spec
trusted_packages:
- purl: pkg:npm/@safedep/pmg
reason: "PMG is a trusted package for PMG"
trusted_packages: []
# Sandbox configuration (EXPERIMENTAL)
# When enabled, package managers run in sandbox environments with restricted