Closed josuemotte closed 2 years ago
Hi @josuemotte! Can you validate that HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled
is set? While Ruby and Puppet both added support for long file paths, it needs to be enabled on the server as well.
Hello @michaeltlombardi ,
Yes it's set
PS C:\tmp> Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled'
LongPathsEnabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control
PSChildName : FileSystem
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
@josuemotte thinking on this overnight, I believe this issue is not with this repository, as such, but possibly with the implementation of librarian-puppet - the long file paths are not being hit because this repository's files are particularly long but because of how librarian is pulling them down; unfortunately, I don't think there's anything I can do to impact this from the library perspective - I know from prior validation efforts for Puppet.Dsc
that files with long paths can be pulled locally and deployed by both puppet module install
and r10k.
If you have any ideas for how we could better support you, I'd be interested and we can reopen!
Hi
Bug description
We are trying to run install via librarian-puppet a module which rely on puppetlabs-pwshlib, all other dependency seemed to be installed successfully but not puppetlabs-pwshlib
It looks like to be a common issue while using librarian-puppet on Windows however the long path issue has been fixed with Ruby 3.0.2 as explained here : https://github.com/ruby/ruby/pull/4505 and here : https://puppet.com/blog/supporting-long-file-paths-on-windows/ https://puppet.com/docs/puppet/6/release_notes_puppet.html#release_notes_puppet_6-23-0
Here is the Puppetfile.lock :
And the error message we are getting while running
librarian-puppet install --verbose
Expected Behavior
To work
Steps to Reproduce
Steps to reproduce the behavior:
Environment