-
Notifications
You must be signed in to change notification settings - Fork 525
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
Generate include script for each group #1787
Generate include script for each group #1787
Conversation
Now scripts are being constructed as a list of ScriptPiece (a simple DU) and then rendered into string written in the resulting file. This is needed so I have better infrastructure to work on a later feature related to include scripts.
Oh nice, this fixes #1680 as well. Actually I could use this right now in my FAKE stuff, so perfect timing :) |
Why generate "one big" script instead of loading the ones we already have? |
@matthid few reasons:
since the file is generated also and code to implement that is rather small, I don't think we should bother taking another route. What do you think? Thanks for feedback! |
Yeah I don't have a strong opinion on this, just curiosity. I think generating one file is fine. One thing I noticed (if I even saw that correctly) is that you currently don't use the ordered package list. This might lead to errors for dependencies across packages. |
Ah I didn't noticed that you are running the function over the complete list of assemblies for the group. Yeah this should work. |
You also don't want to load the same assemblies in twice, so a single script without duplicates might be preferable. |
is tis ready to merge? |
@forki the feature is working but it doesn't have specific integration/unit tests yet, and there are probably bugs that we have yet to find from usage. I'm ok having it merged (useful feature) and to work on adding test in separate PR. |
Looks like one of the related integration tests is broken |
can you please take a look at master. I have 3 broken tests now |
@forki, I'm on it I'll have a fix shortly. |
This includes #1786 (I did that to separate code review if we want to merge in two steps)
This PR add generation of a script per group, like @Krzysztof-Cieslak asked for:
paket-files/include-scripts/net45/include.main.group.fsx
the include script contains all the framework and file assemblies resolved in a single pass.