package-validator icon indicating copy to clipboard operation
package-validator copied to clipboard

Requirement: Use Get-BinRoot or Get-ToolsLocation, never the environment variables directly

Open ferventcoder opened this issue 9 years ago • 3 comments

This will ensure folks do the right thing when packaging.

ferventcoder avatar Jun 04 '16 15:06 ferventcoder

@ferventcoder So fail validation on direct usage of:

  • $env:ChocolateyBinRoot
  • $env:ChocolateyToolsLocation
  • $env:chocolatey_bin_root

Any others?

gep13 avatar Jun 05 '16 18:06 gep13

None that I can think of - using $env:ChocolateyInstall is actually recommended.

ferventcoder avatar Jun 06 '16 00:06 ferventcoder

Perhaps also $env:ChocolateyPackageFolder? Don't really know if that one should fail, but thought I should mention it nonetheless!

AdmiringWorm avatar Mar 05 '17 02:03 AdmiringWorm