Open pelacables opened 4 years ago
The Arcade (https://github.com/dotnet/arcade) toolset that we use for some build infrastructure has an assumption that it will operate in a git repo, and doesn't like tarball-based builds. I think there's a property that can disable that functionality. Can you try passing /p:EnableSourceLink=false
to the build? https://github.com/dotnet/sourcelink/blob/master/docs/README.md#enablesourcelink
Thanks for the answer. unfortunately the error persists:
$ ./build.sh /p:EnableSourceLink=false
[...]
/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.4.0.56107/src/Samples/XmlFileLogger'. [/dev/shm/msbuild-16.4.0.56107/src/Samples/XmlFileLogger/XmlFileLogger.csproj]
[...]
/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.4.0.56107/src/Build.UnitTests'. [/dev/shm/msbuild-16.4.0.56107/src/Build.UnitTests/Microsoft.Build.Engine.UnitTests.csproj]
0 Warning(s)
27 Error(s)
thanks
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.
I'm experiencing a similar error when I build coreclr used .\build.cmd -subset clr
I had only two Errors when I didn't add the parameter /p:EnableSourceLink=false
But I did add the parameter /p:EnableSourceLink=false
,I found the only one Error
For the Error ,I had no choice...
Maybe the issue should be appeared the dotnet/runtime
issue
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.
@ahstram Thank you. This method works
I have this same issue with `Terminal.Gui.
https://github.com/migueldeicaza/gui.cs/
...
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>net472;netstandard2.0;net6.0</TargetFrameworks>
<RootNamespace>Terminal.Gui</RootNamespace>
<AssemblyName>Terminal.Gui</AssemblyName>
<DocumentationFile>bin\Release\Terminal.Gui.xml</DocumentationFile>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<!--<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>-->
<PackageId>Terminal.Gui</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/migueldeicaza/gui.cs/</PackageProjectUrl>
<RepositoryUrl>https://github.com/migueldeicaza/gui.cs.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
...
</PropertyGroup>
I've also tried (no .git
at end):
<RepositoryUrl>https://github.com/migueldeicaza/gui.cs</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Note that when I run my Github Action, I don't get the warnings; it only happens locally.
I've scoured all the linked issues and tried a bunch of things, but no joy.
I have not been able to resolve this. I'd appreciate some help.
Still unable to resolve this...
@tig do you have an https://aka.ms/binlog that you could share from doing the pack? It seems like the sourcelink git targets may not be able to access some relevant information on your device specifically, but without a binlog it's very hard to guess why.
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.
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:
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
Expected behavior
Build success
Actual behavior