Skip to content
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

Building in a Git worktree causes SourceLink to fail #3864

Closed
dagood opened this issue Sep 5, 2019 · 1 comment
Closed

Building in a Git worktree causes SourceLink to fail #3864

dagood opened this issue Sep 5, 2019 · 1 comment

Comments

@dagood
Copy link
Member

dagood commented Sep 5, 2019

#> git clone https://github.com/dotnet/arcade
#> cd arcade
#> git worktree add ..\arcade-second
#> cd ..\arcade-second\
#> .\Build.cmd
...
C:\Users\dagood\.nuget\packages\microsoft.sourcelink.common\1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets(50,5): error : Source control information is not available - the generated source link is empty. [E:\temp\repro-worktree\arcade-second\src\SignCheck\SignCheck\Microsoft.DotNet.SignCheck.csproj]
C:\Users\dagood\.nuget\packages\microsoft.build.tasks.git\1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.targets(24,5): error : Unable to locate repository with working directory that contains directory 'E:\temp\repro-worktree\arcade-second\src\Microsoft.DotNet.Arcade.Sdk.Tests'. [E:\temp\repro-worktree\arcade-second\src\Microsoft.DotNet.Arcade.Sdk.Tests\Microsoft.DotNet.Arcade.Sdk.Tests.csproj]
C:\Users\dagood\.nuget\packages\microsoft.sourcelink.common\1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets(50,5): error : Source control information is not available - the generated source link is empty. [E:\temp\repro-worktree\arcade-second\src\Microsoft.DotNet.Arcade.Sdk.Tests\Microsoft.DotNet.Arcade.Sdk.Tests.csproj]
    0 Warning(s)
    128 Error(s)

Time Elapsed 00:00:36.42
Build failed.

Worktree is really useful to allow me to use incremental builds on my dev box while porting a lot of changes between branches. Would be great for it to work with sourcelink enabled.

@tmat

@dagood
Copy link
Member Author

dagood commented Sep 5, 2019

Oh, it looks like this is reported on SourceLink itself: dotnet/sourcelink#347.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant