This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-02
Channels
- # adventofcode (153)
- # announcements (29)
- # architecture (6)
- # babashka (5)
- # beginners (197)
- # calva (71)
- # clj-kondo (27)
- # cljfx (4)
- # cljs-dev (33)
- # cljsrn (1)
- # clojure (52)
- # clojure-australia (5)
- # clojure-boston (1)
- # clojure-europe (38)
- # clojure-france (1)
- # clojure-hungary (5)
- # clojure-italy (1)
- # clojure-nl (19)
- # clojure-uk (5)
- # clojurescript (12)
- # conjure (4)
- # core-async (3)
- # cursive (22)
- # datalog (70)
- # datomic (32)
- # deps-new (8)
- # emacs (79)
- # events (2)
- # fulcro (15)
- # graalvm (15)
- # leiningen (2)
- # lsp (5)
- # minecraft (1)
- # nbb (1)
- # off-topic (37)
- # polylith (11)
- # re-frame (9)
- # reagent (1)
- # reitit (3)
- # releases (1)
- # reveal (2)
- # shadow-cljs (42)
- # spacemacs (1)
- # tools-build (4)
- # tools-deps (55)
- # vim (11)
- # xtdb (6)
I am creating a new template for my projects. The root
folder has a script with executable permissions. When creating a dummy application, I am referring to the template using local/root
coordinates. The script is created correctly, however it doesn't have the executable permission on it. All this is on WSL2 Linux.
ā¢ Is it correct for me to expect the script file to be copied over while retaining the executable permission?
ā¢ Is there a way for me to mark the script executable after the dummy app is created? Like some kind of post creation hook script?
I scrolled up and saw this has already been reported here - https://clojurians.slack.com/archives/C019ZQSPYG6/p1634833518001900 ... @U7CAHM72M were you able to create the ticket? please share if you did. thanks.
@U04V70XH6 Looking at the source for deps-new
, it seems to be primarily using b/copy-dir
to copy files from root
to the created app. From https://github.com/amithgeorge/tools-build-executable-file-copy-bug, b/copy-dir
is able to copy the script correctly with the executable permission set. For reference this is https://github.com/amithgeorge/deps-new-app-template. It would help if you could clarify what should I change in my test repo to reproduce the issue.
The only copy-file
operations should be on the two explicitly named files lib.clj
and lib_test.clj
-- everything else should copied with copy-dir
. Based on your test, I would therefore expect to get x
perms copied from template to temp dir to target dir. Could you create an issue on deps-new
pointing to your repo and I can take a look? I'm wondering if the x
perms are lost when the template is checked out by t.d.a perhaps?
Issue created - https://github.com/seancorfield/deps-new/issues/22 .
Thanks @U0A5B1LJU -- I probably won't get to it until the weekend but at least now I have a repro and won't forget it š
Figured it out while I was watching Drag Race -- created an "ask" for tools.build
and updated the issue with a workaround for now.
I implemented the workaround. Thank you! I will keep an eye on the ask thread. :thumbsup: