Any way to require a file relative to the current package’s root?
If your package is named foo
, then foo/bar
?
Or PWD?
I don’t think you can use current-directory in requires.
Is there any way to subpackage collections?
You can have multiple collections in a package.
I mean, I have a program and I’d like to have a utils package for it, but not install it as something “outside” of this program, I’d like to keep it inside the program, but I also don’t want "../../../utils/utils.rkt" in my requires
Oh now I understand @soegaard2, I could use my-program/utils
or something… that’d work actually :smile:
But what if I have git worktrees for different branches, how will this work? Will I need different pkg names for each branch?
I guess what I’d like to see is a virtualenv (like for python) or something
Haven’t had to deal with multiple gittrees. If you install your development packages using the link command, then what-ever branch is currently checked out will be used.
With git worktrees we can check out multiple branches, @soegaard2. If I only had 1 checked out branch it’d work fine
Maybe a solution is to change the link when switch to another worktree
Could work if you script it.
Perhaps it’s not a big issue in Racket
At work I need the worktrees due to code generation, but in Racket that’s done with macros…
However, precompiled files could be useful when using worktrees in racket
I see what you mean.