package-validator
package-validator copied to clipboard
Requirement: Use Get-BinRoot or Get-ToolsLocation, never the environment variables directly
This will ensure folks do the right thing when packaging.
@ferventcoder So fail validation on direct usage of:
- $env:ChocolateyBinRoot
- $env:ChocolateyToolsLocation
- $env:chocolatey_bin_root
Any others?
None that I can think of - using $env:ChocolateyInstall is actually recommended.
Perhaps also $env:ChocolateyPackageFolder?
Don't really know if that one should fail, but thought I should mention it nonetheless!