Commit fb4bc1d
jordanbreen28
(bug) - Add synchronization to Dir.chdir in init_puppet_lint
This commit wraps the `Dir.chdir` call in the `validation_provider.rb`
file within a `$PuppetParserMutex.synchronize` block.
Before this change, the `Dir.chdir` method was called without synchronization,
which could lead to conflicts if another `chdir` block was in progress.
This change prevents the error "(puppet/fixDiagnosticErrors) conflicting chdir
during another chdir block" by ensuring that the `Dir.chdir` call is only
executed by one thread at a time.1 parent 2a7db14 commit fb4bc1d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments