-
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
Paket pack seems to evaluate all templates it finds even when using the --template switch #2765
Comments
it is due to my fix for #1848.
|
Closed
@wastaz do you use |
@lexarchik No, I do not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When running
paket pack
with the--template
switch it seems that paket still goes looking at otherpaket.template
files than the one provided. This is all fine as long as all other paket.template files it can find are ok, but if for some reason they arent (in this case because of only partially compiling the solution) paket still fails even though the packing of the template file given by the--template
switch would work fine.Repro steps
Check out the following reproduction repo: https://github.com/wastaz/paket-template-repro
Run
./build.sh targetHost=ProjectA
Expected behavior
This project contains two projects, ProjectA and ProjectB, each of these has its own paket.template file (and is meant to be pushed as two separate nugets). They have no references to each other.
By running
./build.sh targetHost=ProjectA
it should build only ProjectA and then pack only ProjectA. So I expect this to correctly produce a ProjectA nuget package.Actual behavior
However paket fails with the following message.
I've also tried running this without FAKE, and I get the exact same output and problem.
Notice how what it is complaining about is that it could not find ProjectB.dll, which is of course correct since we have not compiled ProjectB and we do not need ProjectB in order to pack ProjectA.
Known workarounds
Always compile everything or remove all other paket.template files...
The text was updated successfully, but these errors were encountered: