Adding target that wraps building a pkgproj and then updating package index #4632
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cc: @safern @ericstj
Whenever there is a failure in harvesting validation due to a new revision of a package getting shipped in a different release, our current task instructs in the failure to run UpdatePackageIndex task on the failing project with a property set in order to fix the issue. @safern recently hit this (dotnet/runtime#1729) and saw the problem that in order for this instruction to work, the pkgproj has to be built first, and there could be the case where locally this hasn't happened yet, and there is no clear instruction saying that this is the problem. In order to fix this, @safern and I decided to add a Target that would wrap both the build of the package, and the Update of the package index such that the instructions on the error will still work in case the package isn't built yet.