(PUP-10653) Remove win32/dir constant usage#1125
Conversation
For Puppet 7 we are dropping the `win32/dir` dependency as we only used constants from it, which we replaced with environment variables (see: puppetlabs/puppet#8314). This would become breaking when using the stdlib module with Puppet 7, as the win32 dependencies are no longer provided in the puppet gem. Replace the usage of the `Dir::COMMON_APPDATA` with the `ALLUSERSPROFILE` environment variable.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1125 +/- ##
========================================
+ Coverage 4.39% 5.31% +0.91%
========================================
Files 185 185
Lines 5273 5272 -1
========================================
+ Hits 232 280 +48
+ Misses 5041 4992 -49 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Since we dropped support for 2003 years ago, then AKAIK If we instead merge to |
|
From a naive reading of the code (I'm still trying to catch up with everything that happened over the last two months) this does not look like a breaking change, especially as you seem to be saying that after Windows Server 2003 this is a noop change anyways? If my understanding is correct, why would it then be a problem merging this a bug fix and asking people to use this as the minimum version to use on puppet 7? @joshcooper core puppet tools ( |
I was mistakenly under the impression that |
For Puppet 7 we are dropping the
win32/dirdependency as we only used constants from it, which we replaced with environment variables (see: puppetlabs/puppet#8314).This would become breaking when using the stdlib module with Puppet 7, as the win32 dependencies are no longer provided in the puppet gem.
Replace the usage of the
Dir::COMMON_APPDATAwith theALLUSERSPROFILEenvironment variable.