Skip to content
Discussion options

You must be logged in to vote

I do not think Mill currently has a built-in “resolve targets relative to the shell cwd” mode.

Mill can discover/evaluate a build made from build.mill plus nested package.mill files, but target selectors are still names in the build graph, not filesystem-relative names. In the layout you showed, server.run is a different selector from apps.foo.server.run; changing into apps/foo does not make apps.foo an implicit prefix.

So the two practical options are:

  1. Keep using fully qualified targets:
mill apps.foo.server.run
mill apps.foo.client.run
  1. Add a thin repo-local wrapper that computes the path from the build root to $PWD, converts / to ., and prefixes that to the target. For example, from a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@atty303
Comment options

Answer selected by atty303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants