-
Notifications
You must be signed in to change notification settings - Fork 520
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
Paket pack skips files #2445
Comments
I tried to fix it in 5.1.2 but @konste you need to test as well since the relatred bug I fixed for you introduced this issue. So my fix was wrong (tbf it was a shot in the dark) and I'm not sure if now everything is well. |
5.1.3 already underway with yet another fix |
I will test when 5.1.3 is out. |
we're already on 5.1.4
2017-06-19 19:14 GMT 02:00 Konstantin Erman <[email protected]>:
… I will test when 5.1.3 is out.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2445 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNHeOyI9N1fJezO41QJrxhy2JaL4Iks5sFqyEgaJpZM4N-Z1X>
.
|
Gosh... you are too fast for me! Ok, will test now. |
PaketPackRepro3.zip |
That's what I feared. The problem is that for some reason we can't detect that the target is the same. We can definitely detect that the source is the same. But that causes trouble |
It almost feels like two sources of files should be independent. First source - dependencies and primary output of the current project is one thing - it should go to the output regardless. Files section should work within itself - it adds some files, then may be exclude some files, but exclusion should only affect what it added! |
@konste in any case we are not allowed to add two files into same folder inside zip. but that is what is happening. trying to fix it |
It may sound drastic, but how about we change the logic of taking primary output only to taking everything in the output folder? |
doesn't fix the root cause here. maybe it would fix your issue ;-) |
For class libraries it would not change anything - they only have DLL and PDB in the output folder. And for other types of projects it really makes sense to take everything as they probably cannot run without the rest of the files anyway. |
The problem with the "files" section is that there is no way to tell which part of the project output is primary output and dependencies and which is everything else. It is impossible to author "files" section properly without knowledge what is already included by default. So the algorithm should look like this:
This way whatever curious user writes to the "files" section he or she would only get single instance of all files in each ZIP folder. |
Make comparison case insensitive - what's the problem? |
other OSes ;-) but yes I guess we need to do that for win. |
ok. so I think both are resolved now |
Description
Starting from 5.0.0-rc009 paket skips duplicate files from the package being created.
Repro steps
.\paket.exe pack output . templatefile .\Test.template
Expected behavior
The resulting package should contain both directories with File1.txt in each of them.
A real-life scenario is when a package contains multiple applications sharing some common libraries.
Actual behavior
The resulting package only contains Dir1.
Known workarounds
None.
The text was updated successfully, but these errors were encountered: