You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Paket 5.207.4 broke the FAKE release process and creates empty packages #3599
You can see how I managed to pin it to that particular Paket release: fsprojects/FAKE#2341
In fact, I cannot even reproduce this locally, this only seems to happen in CI and in particular only Azure DevOps and sometimes in GitLab, but only Azure DevOps reproduces 100%
What's really bad is that the packaging process works but creates corrupt packages. The release process did catch the issue, because we bootstrap some of the packages.
Oh my god I figured it out, it took a bit longer because paket was restoring the targets file within the process so all my attempts to add logging failed miserably.
I added the following warning message: <Warning Text='TEST: OutputPath: $(AdjustedNuspecOutputPath), All: "@(MyPaketNuspecFiles)", Version: "$(PackageVersion)", Command: $(PaketCommand) fix-nuspecs files "@(_NuspecFiles)" project-file "$(PaketProjectFile)" ' />
I think we need at least:
- Error out if we cannot found a nuspec at all
- Fix the issue at hand and add a test ...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3599?email_source=notifications&email_token=AAAOANE5XCCBOJRYQGTOX33P32RNFA5CNFSM4H2XN2U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKSPBY#issuecomment-504702855>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAOANEI3GF24MWHTNOES4LP32RNFANCNFSM4H2XN2UQ>
.
Activity
matthid commentedon Jun 22, 2019
It seems like the change leads to
paket fix-nuspecnot being called anymore in thedotnet pack Fake.slncommandmatthid commentedon Jun 22, 2019
Oh my god I figured it out, it took a bit longer because paket was restoring the targets file within the process so all my attempts to add logging failed miserably.
I added the following warning message:
<Warning Text='TEST: OutputPath: $(AdjustedNuspecOutputPath), All: "@(MyPaketNuspecFiles)", Version: "$(PackageVersion)", Command: $(PaketCommand) fix-nuspecs files "@(_NuspecFiles)" project-file "$(PaketProjectFile)" ' />This is the result:
TEST: OutputPath: obj\Release, All: "obj\Release\Fake.Api.Slack.5.15.1-alpha.1129.nuspec", Version: "5.15.1-alpha.1129+vsts.2fdb5b21981edf02be1fe6bf2b748197d9ead56d", Command: "d:\a\1\s\.paket\paket.exe" fix-nuspecs files "" project-file "d:\a\1\s\src\app\Fake.Api.Slack/Fake.Api.Slack.fsproj"So the problem is that
PackageVersionincludes the Semver "Build metadata" while the file doesn't...@enricosada Any idea how to fix? Is there another msbuild variable we could use?
matthid commentedon Jun 22, 2019
I think we need at least:
forki commentedon Jun 23, 2019
matthid commentedon Jun 23, 2019
@forki I'd like to but I don't know how to fix, the only thing that probably works is reverting that PR :/
forki commentedon Jun 23, 2019
Ok. Please send me a pr with the revert and then we need to talk to @enricosada to find a new approach
forki commentedon Jun 23, 2019
Or never mind. I'll do the revert myself
matthid commentedon Jun 23, 2019
Give me a bit, I might find another solution
Fix fsprojects#3599, error out if we can't find nuspec and add a test
matthid commentedon Jun 23, 2019
See #3600, it is a bit of a hack so we probably should let the CI test it