Closed ppomes closed 5 years ago
stat is done on the right directory
Right, the code uses doesFileExists
, but should also check doesDirectoryExists
when recurse
is set to True
.
Sidenote for when I will be back home to fix this (or if someone checks it first, wink wink), checkAllSources
would be more elegant if it used the Validation
applicative instead of manually concatenating the failures.
@bartavelle I have to admit I don't see how to use Validation within IO (yet).
@ppomes In case you need a workaround while waiting for the fix you can set extratests
to false:
https://github.com/bartavelle/language-puppet/blob/master/tests/defaults.yaml#L49
Does master solve the issue?
Yes!! thanks, issue can be closed.
@bartavelle no regression on my side but I quite don't understand the last commit: 1719af114f64beca8fe8563da9b29a99556a5143. Isn't "source" where the filepath would be ?
@PierreR @bartavelle: Well, I also have the same question!
@bartavelle actually I am pretty sure there is a regression. Now the tests always pass even when the source of a path is wrong ...
I can confirm that the latest commit 1719af1 is causing the regression. I have the feeling that after this commit the file test is not effective anymore at least for "source".
Oh that is a brainfart over another brainfart. Lemme check this.
Also, Validation
exists but not ValidationT
contrary to what I thought!
Hi,
Here is a tgz showing a regression with recurse=>true on a File resource. This code is working with puppetresources 1.3.14 (the previous version I was using).
With 1.4.3:
testpp.tar.gz