question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build failed "Source control information is not available - the generated source link is empty"

See original GitHub issue

Hi,

I’m trying to build msbuild (msbuild-16.5.0.12403 and msbuild-16.4.0.56107) in Linux (SL7) with git 2.18.4 and dotNET-Core-SDK/3.1.3 but the build fails with errors like:

/home/user/.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 '/dev/shm/msbuild/16.5.0/dummy-/msbuild-16.5.0.12403/src/Samples/Dependency'. [/dev/shm/msbuild/16.5.0/dummy-/msbuild-16.5.0.12403/src/Samples/Dependency/Dependency.csproj]

I get this same error for several directories.

Could someone give me an explanation on what the error means ? I’m sorry but I don’t know what other information I can provide that can be helpful, I don’t fully understand what’s wrong.

Steps to reproduce

wget https://github.com/microsoft/msbuild/archive/v16.4.0.56107.tar.gz
tar -zxvf v16.4.0.56107.tar.gz
cd msbuild-16.4.0.56107
./build.sh

Expected behavior

Build success

Actual behavior

/home/x2phasr1/.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 tha
t contains directory '/dev/shm/msbuild-16.4.0.56107/src/Tasks.UnitTests'. [/dev/shm/msbuild-16.4.0.56107/src/Tasks.UnitTests/Microsoft.Build.Tasks.UnitTests.csproj]
/home/x2phasr1/.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. [/dev/shm/msbuild-16.4.0.56107/src/Tasks.UnitTests/Microsoft.Build.Tasks.UnitTests.csproj]
    0 Warning(s)
    54 Error(s)

Time Elapsed 00:00:59.93
Build failed (exit code '1').

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ahstramcommented, Jul 14, 2020

I’m experiencing a similar error:

If I download the tarball via wget https://github.com/microsoft/msbuild/archive/v16.6.0.22303.tar.gz, I will run into the same 54 errors when running ./build.sh

[...]
    0 Warning(s)
    54 Error(s)
Time Elapsed 00:00:49.01
Build failed (exit code '1').

However, if I check out via:

$ git clone -b v16.6.0.22303 git@github.com:microsoft/msbuild.git msbuild-16.6.0.22303

I am able to run ./build.sh without issue on CentOS8.

0reactions
tigcommented, Aug 17, 2023

found the issue right after I posted this: I don’t use https for git. I use SSH via a .ssh/config file.

Changing my remote to use HTTP fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning : Source control information is not available - the ...
So I got sourcelink up and running for a nuget package on azure devops (i.e. using git, pipelines and artifacts - all on...
Read more >
c# - Enabling SourceLink
Most of the tutorials on how to set up SourceLink seem to omit two key things. Firstly: As well as unchecking "Enable Just...
Read more >
Source Link and .NET libraries
Source Link executes when creating the NuGet package and embeds source control metadata inside assemblies and the package.
Read more >
How to configure Source Link in .NET & how to use into ...
Step-by-step tutorial by Luis Ruiz Pavón on How to configure Source Link in .NET and how to use it in Visual Studio. Enjoy!...
Read more >
build failed "Source control information is not available
Hi,. I'm trying to build msbuild (msbuild-16.5.0.12403 and msbuild-16.4.0.56107) in Linux (SL7) with git 2.18.4 and dotNET-Core-SDK/3.1.3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found