Closed hybby closed 5 years ago
Yeah, I haven't considered the possibility that the environmentdir
could be a symlink. Let me have a look.
Out of interest: why do trigger g10k with the -force
parameter in the first place?
I was troubleshooting another issue where it didn't seem like modules were being installed where I expected them to be based on the directives in my Puppetfile (#107) and thought I'd be a bit more aggressive.
I'm not using it regularly, but the behavior surprised me slightly - since the option exists, it's okay to use, right? :)
Hmm, I can't reproduce the change of the basedir
from a symlink to a directory after a g10k run.
Are you sure that the Puppetserver isn't changing its environmentpath
from a symlink to a directory? Why did you use a watch to check if it's still a symlink or a file? If g10k is really responsible then it should be a directory and not a symlink directly after the g10k run.
Can you please try to reproduce the error yourself and use the -debug
parameter and post it here?
Fixed with commit 00085174c43a2e1e063b1f01a3f86bab0b99906c
This seems to be an odd one. I've got my
environmentdir
configured as a symlink to/vol/environments
, which is a separate volume:As soon as I execute
g10k
with the-force
flag, my environmentdir becomes a directory again, after-force
bombs out with an error:Would it be possible to alter
g10k
to only purge the contents of the basedir rather than removing it completely?