-
Notifications
You must be signed in to change notification settings - Fork 510
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
Optional(?) New Output Directory Structure #18
Comments
+1 to also could you have arbitrary subdirs like |
I wasn't planning to restrict it. Would subdirs like I also plan to do this change of build profiles for |
you might want to make different api calls (via |
Ah, yea, good point. Now for how these should be configured. {profiles, [{dev, [
{erl_opts,
[debug_info,
warnings_as_errors]}
]}
]
}. Just something like that and then if a profile is set it merges the contents of the list from the profile with the rest of the config values. And the output dir I guess would just be |
that looks great, although you need pretty clear merging rules. maybe lists are appended and everything else is replaced? |
Yup, that is what I was thinking. @ferd ? |
What would the default profile be? |
@ferd I suppose either One issue I realized is, maybe we should do this structure instead:
Where we could also replace the name |
I agree The downside of this remains booting a shell with it.
Or the more expected
Because most people don't use the rest. Of course we could focus more work on Having it be visible could be interesting because I'm for the general idea of moving things to |
My idea was to have it all set before getting to providers. And maybe just using env vars like how
Hm, but some providers, like And definitely want this for |
Working on a document of how profiles work, open for comment: https://gist.github.com/tsloughter/1e16d70268182db1415a |
This change is made in #31 |
rebar
is unique as a build tool for writing all over and not into a single directory.mix
uses_build
,lein
usestarget
,cabal
usesdist
,ocamlbuild
uses_build
andsinan
used_build
.So I suggest a structure like:
We could support this being optional and outputting as we are currently if not selected. But since where things are outputted doesn't change actual build compatibility with
rebar2
(I hope...), maybe that is a waste of effort.Obviously we'll also need to make some optional changes to
rebar.config
as well to allow for these different build profiles (dev
,prod
, etc.) But my idea for that is to simply have anything at the top level bedev
ordefault
and you can then define a context like{prod, [....]}.
where any usualrebar.config
term can be within that list.The text was updated successfully, but these errors were encountered: