Hello list,

I’ve been playing with `raco distribute` to build small docker images with racket binaries in them and it seems that the command sometimes creates a very deep tree and crashes in the end (with Racket 7.2):

```
root@a8ec24e4167d:/racket/pipo# raco distribute app tlf
copy-file: cannot open destination file
source path: /racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pi... destination path: /racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pipo/app/lib/plt/tlf/exts/ert/r0/racket/pi...
  system error: File name too long; errno=36
  context...:
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/private/map.rkt:74:19: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   /usr/share/racket/collects/racket/file.rkt:94:2: loop
   /usr/share/racket/collects/racket/private/map.rkt:68:13: for-each
   ...
```

For a while, I thought this was because I was in /tmp, but further experiments showed that it also happened in other places. I tried moving my binary in another place before running `distribute` on it but it can also fails because the distribute code is trying to read things where I built the app(?).

Any idea on how to workaround this issue?

—
P.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to