Details
-
Task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Night's Watch
-
5
-
NW - 2020-08-18
-
Not Needed
-
superseded by
PUP-10653
Description
win32-dir uses the Shell APIs to find common directories on Windows. Find an alternative solution that doesn't require CSIDL
On a cursory look, the consumed code can be replaced with something like:
Dir.const_set('COMMON_APPDATA', 'C:\\ProgramData')
|
Dir.const_set('WINDOWS', 'C:\\Windows')
|
Dir.const_set('PROFILE', 'C:\\Users\\Administrator')
|
See https://gist.github.com/Iristyle/057c5560dbe64532fd1770a36e51f805 for more details on why this is important.
A follow up to this should remove the actual gem from vendored Ruby.
Attachments
Issue Links
- causes
-
MODULES-10963 reboot: Remove the usage of Win32 gems in the reboot module
-
- Closed
-
- is cloned by
-
FACT-1638 Remove win32-dir code / references from Facter
-
- Resolved
-
- is duplicated by
-
PUP-9131 Update puppet daemon.rb on windows to work without Win32 gems
-
- Closed
-
- relates to
-
FACT-1638 Remove win32-dir code / references from Facter
-
- Resolved
-