ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

SourceLink seems to fail while building #95

Closed 7sharp9 closed 5 years ago

7sharp9 commented 5 years ago

Issue is already logged elsewhere: https://github.com/dotnet/sourcelink/issues/179 https://github.com/dotnet/sourcelink/issues/155

  Microsoft.Build.Tasks.Git.targets(20, 5): [MSB4018] The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly.
System.BadImageFormatException: Method has no body
File name: 'LibGit2Sharp'
  at LibGit2Sharp.Core.Proxy.git_buf_free (LibGit2Sharp.Core.Handles.GitBuf buf) [0x00000] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Handles.GitBuf.Dispose () [0x00000] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2[T,TResult] pathRetriever) [0x0002e] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Proxy.git_repository_discover (LibGit2Sharp.Core.FilePath start_path) [0x00005] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Repository.Discover (System.String startingPath) [0x00006] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at Microsoft.Build.Tasks.Git.GitOperations.LocateRepository (System.String directory) [0x00000] in <859aea960c5c4805ad7e678061631919>:0 
  at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository (Microsoft.Build.Tasks.Git.LocateRepository task) [0x00007] in <859aea960c5c4805ad7e678061631919>:0 
  at Microsoft.Build.Tasks.Git.LocateRepository.Execute () [0x00038] in <77223f90773a4c0e88a42a7f38595356>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in <9d534585aab94a68ab40b57567b8fbbe>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x001f6] in <9d534585aab94a68ab40b57567b8fbbe>:0 
ctaggart commented 5 years ago

@7sharp9 You are trying to build with mono?

7sharp9 commented 5 years ago

Building with Rider or vs4mac, command line work ok though.

ctaggart commented 5 years ago

Accepting PRs with a workaround: https://github.com/enricosada/falanx/commit/d525c2ef6cc1d13fc405990864e6a254d06400b7

Although I'd prefer to just wait until it is fixed Microsoft.SourceLink.Git. They are working on it.