-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to use a custom output dir via an env var #3530
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
How about we use an env var rather than a flag? That way we dont get to parse it and can keep the server files in the same place (relatively) as they are today. I'd rather not split them into a separate folder if it can be avoided |
env var isnt perfect either from a UX perspective, but given this is a bit of a niche case I think its a better solution than reorganizing the file layout for this feature due to implementation concerns. lets go with an envvar for now and at some point we may have a graal native or scalanative client and can have it be smart enough to use flags |
As for the cli args, if at all, I'd suggest to just go with Here are some more motivations for alternative out dirs:
As a consequence, I think we should be able to split the two uses of |
Let's go with the env var for now and keep the I do agree that generating an |
365dede
to
b5768b4
Compare
I went for the |
For looking at my |
I'd go for something like |
Then my favorite is |
b3ad81b
to
2dcda66
Compare
2dcda66
to
77d0fa7
Compare
I think this looks great. As a last thing before landing, let's convert the integration test into an example test in You may need to hack |
77d0fa7
to
cfad2d8
Compare
Just added an example under |
That ended up not being needed, as these commands are run through |
cfad2d8
to
c64ab07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, @alexarchambault just need to update the PR description to reflect the current state of the PR and we can merge it
c64ab07
to
877cbdf
Compare
(Last push is just a rebase on the latest |
This allows users to change the Mill output directory (by default,
out
under the project root) to a directory of their choice, via theMILL_OUTPUT_DIR
environment variable.Fixes #3144