Skip to content

Sourcelink failing on RHEL 6 and Ubuntu 18 #204

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

Closed
dsplaisted opened this issue Nov 9, 2018 · 2 comments
Closed

Sourcelink failing on RHEL 6 and Ubuntu 18 #204

dsplaisted opened this issue Nov 9, 2018 · 2 comments

Comments

@dsplaisted
Copy link
Member

We are getting errors like the following when trying to build our repos using sourcelink on RHEL 6 and Ubuntu 18:

/opt/code/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63401-01/build/Microsoft.Build.Tasks.Git.targets(20,5): The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf)
at LibGit2Sharp.Core.Proxy.git_buf_free(GitBuf buf)
at LibGit2Sharp.Core.Handles.GitBuf.Dispose()
at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
at LibGit2Sharp.Repository.Discover(String startingPath)
at Microsoft.Build.Tasks.Git.GitOperations.LocateRepository(String directory) in //src/Microsoft.Build.Tasks.Git.Operations/GitOperations.cs:line 26
at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository(LocateRepository task) in /
/src/Microsoft.Build.Tasks.Git.Operations/RepositoryTasks.cs:line 58 [/opt/code/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj]

dsplaisted added a commit to dotnet/installer that referenced this issue Nov 9, 2018
@bording
Copy link

bording commented Nov 9, 2018

See #197

jthelin added a commit to jthelin/ServerHost that referenced this issue Dec 3, 2018
jthelin added a commit to jthelin/ServerHost that referenced this issue Dec 3, 2018
jthelin added a commit to jthelin/ServerHost that referenced this issue Dec 3, 2018
Fully disable SourceLink if not building on Windows (especially MacOS).

`EnableSourceControlManagerQueries = false`

X-ref:
dotnet/sourcelink#204
dotnet/installer@fe80bc7#diff-4b2f402501d23abbede6eac0f47783e4R19
@tmat
Copy link
Member

tmat commented Dec 19, 2018

Fixed in version 1.0.0-beta2-18618-05

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

3 participants