Skip to content

Build occasionally fails when using shared GitInfo.cache #390

@TymurGubayev

Description

@TymurGubayev

Describe the Bug

When the $(GitCachePath) is set to "use a shared location for different projects", as described in the documentation, occasionally the build will fail, at least on the build server.

Steps to Reproduce

Create a solution with multiple projects in it.

Define a shared location for the GitInfo.cache, something like this f.e.

<GitCachePath>$(SolutionDir)/obj/</GitCachePath>

Build using msbuild /m, while having some changes in the repository, so GitInfo.cache would be updated.

Expected Behavior

Works every time.

Actual Behavior

Occasionally, it doesn't work.

6>C:\Users\runner-user\.nuget\packages\gitinfo\3.5.0\build\GitInfo.targets(864,5): error MSB3491: Could not write lines to file "C:\runner-user\builds\plyD-vjk\0\mygroup\myproject1\/obj/GitInfo.cache". The process cannot access the file 'C:\runner-user\builds\plyD-vjk\0\mygroup\myproject1\obj\GitInfo.cache' because it is being used by another process. [C:\runner-user\builds\plyD-vjk\0\mygroup\myproject1\App1\App1.vbproj]
Build FAILED.

Version Info

GitInfo 3.5.0

Back this issue
Back this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions