Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows 10 - 1903
PDK 1.14.1
Bolt 1.13.1
-
- Should be able to use the PDK and Bolt products together without errors
-
Puppet Developer Experience
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
If you run PDK, then Bolt and then PDK again, PDK will terminate with a ruby error
C:\Source> pdk --version
|
1.14.1
|
C:\Source> bolt --version
|
1.31.1
|
C:\Source> pdk --version
|
Traceback (most recent call last):
|
C:\PROGRA~1\PUPPET~1\Bolt\bin\ruby: No such file or directory -- C:/PROGRA~1/PUPPET~1/Bolt/bin/pdk (LoadError)
|
This also occurs in the reverse (bolt -> PDK -> Bolt)
C:\Source> bolt --version
|
1.31.1
|
C:\Source> pdk --version
|
1.14.1
|
C:\Source> bolt --version
|
C:\PROGRA~1\PUPPET~1\DEVELO~1\private\ruby\2.4.9\bin\ruby.exe: No such file or directory -- C:/PROGRA~1/PUPPET~1/DEVELO~1/private/ruby/2.4.9/bin/bolt (LoadError)
|
This is due to both PowerShell wrappers managing the same Environment Variables (RUBY_DIR, SSL_CERT_FILE and SSL_CERT_DIR)
Because these environment variables are only set at module import time, not at function invocation time, both wrappers are stomping over each other and causing errors.
Ideally environment variables should not be used at all and instead use command line invocations.
Attachments
Issue Links
- duplicates
-
PDK-632 pdk's embedded ruby still vulnerable to disturbances from environment on windows
-
- Closed
-