Welcome! Please see the About page for a little more info on how this works.

+2 votes
in tools.build by
closed by

When you use clojure.tools.build.api/copy-dir with :replace it reads the source file and then writes a new target file -- it doesn't "copy" the file so the target file is created with default permissions.

This is a problem if you are copying executable shell scripts and trying to replace text in them because the target file created won't have executable permissions.

This cropped up with deps-new in this issue: https://github.com/seancorfield/deps-new/issues/22

I think that if you source file is executable, the target file should also be executable -- and that works fine without :replace.

closed with the note: Fixed in v0.7.1

1 Answer

+1 vote
by
selected by
...