Hello,
I think I’ve found a typo in the racket guide. It’s at the bottom of the 6.1 Module Basics page:
The text says raco exec instead of raco exe .
Matteo
Time to make your first PR to the Racket repo.
Go here:
@item{When @seclink["exe" #:doc '(lib
"scribblings/raco/raco.scrbl")]{@exec{raco exec}} plus
@seclink["exe-dist" #:doc '(lib
"scribblings/raco/raco.scrbl")]{@exec{raco distribute}} are
used to create an executable to run on a different machine, the
paths of the current machine are likely unrelated to paths on
the target machine. The @exec{raco exe} tool treats modules
that are referenced via filesystem paths differently than
modules reference via collection paths, because only the latter
make sense to access through reflective operations at run
time.
For example, if @exec{raco exe sort.rkt} creates an executable
that uses @racket[(dynamic-require 'candy/db/lookup #f)] at run
time, then that @racket[dynamic-require] will fail in the case
that @filepath{db/lookup.rkt} is resolved relative to the
filesystem path @racket{sort.rkt} at executable-creation time.}
]
Fork the repo, find the file in your fork, click the pencil icon and make the change.
Then you are asked whether you want to make a PR to the original repo (if I remember correctly).
5 Likes
I think I did it. Thanks a lot!
1 Like