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
GitVersionTask Parallel restore issue when multi targeting #1381
I am noticing this issue in my NETSTANDARD PR branch, but I think it might impact master as well (although not tested master directly I am inferring it is a problem)
The issue is, the following target runs when restoring:
The WriteVersionInfoToBuildLog msbuild task ends up calling ExecuteGitVersion which ends up using libgit2sharp.
If you are restoring a solution with dotnet restore (I am not sure about /T:Restore but I assume it's the same?) restoration happens in parallel unless you opt out via dotnet restore --disable-parallel switch.
Because of this, I am seeing libgit2sharp throw errors about locking as it's being used in parallel to inspect the same repo:
This issue seems only relevant to dotnet build, if you use msbuild /t:build or msbuild /t:Restore its fine.
I beleive this is because dotnet build now implictly does a dotnet restore. And dotnet restore is done in parralel unless you opt out using --disable-parallel.
This causes a problem for our build task, libgit2sharp keeps locks and doesn't like to be used concurrently.
Therefore in my sample repo in order to work around this I have had to use dotnet restore --disable-parallel.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
This should probably result in a docs change - i.e gitversiontask doesn't support building projects in parallel, which is a build switch that should be disabled
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
Not supporting parallel build is often a show-stopper for big solutions. Turning parallel build off easily makes 3-minutes build into 15-minutes. Do you take votes on what is the most important? Count mine here ;)
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
This is definitely still a problem when using the GitVersion.MsBuild package, including the 5.6.8 package. Yes, there are options to workaround it, but I think that it makes sense to fix things so that the package works without requiring everyone to disable parallel builds or otherwise alter how GitVersion.MsBuild works by default.
Activity
dazinator commentedon Mar 11, 2018
This might be down to an error in my PR branch, I'll reopen once I know for sure it's an issue in master.
dazinator commentedon Mar 11, 2018
This issue seems only relevant to dotnet build, if you use msbuild /t:build or msbuild /t:Restore its fine.
I beleive this is because dotnet build now implictly does a dotnet restore. And dotnet restore is done in parralel unless you opt out using --disable-parallel.
This causes a problem for our build task, libgit2sharp keeps locks and doesn't like to be used concurrently.
Therefore in my sample repo in order to work around this I have had to use
dotnet restore --disable-parallel.stale commentedon Jun 29, 2019
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
dazinator commentedon Jul 29, 2019
This should probably result in a docs change - i.e gitversiontask doesn't support building projects in parallel, which is a build switch that should be disabled
stale commentedon Oct 27, 2019
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
ivan-danilov commentedon Nov 13, 2019
Not supporting parallel build is often a show-stopper for big solutions. Turning parallel build off easily makes 3-minutes build into 15-minutes. Do you take votes on what is the most important? Count mine here ;)
33 remaining items
stale commentedon Mar 19, 2021
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
bording commentedon Apr 16, 2021
This is definitely still a problem when using the GitVersion.MsBuild package, including the 5.6.8 package. Yes, there are options to workaround it, but I think that it makes sense to fix things so that the package works without requiring everyone to disable parallel builds or otherwise alter how GitVersion.MsBuild works by default.
SeppPenner commentedon Apr 18, 2021
I was facing no problems with 5.6.7, but 5.6.8 seems to do some things differently again.
bording commentedon Apr 21, 2021
I have opened #2669 with my attempt to fix this problem.
arturcic commentedon Apr 28, 2021
Closed by #2669
github-actions commentedon Apr 29, 2021
🎉 This issue has been resolved in version 5.6.9 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀
SeppPenner commentedon Apr 29, 2021
Nice work, I can confirm that the issue is now solved 👍
arturcic commentedon Apr 29, 2021
We should thank @bording for the fix