-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
[v3.0] Add support for ARM64 variants of Debian, Ubuntu #407
Conversation
Odd, I've now seen two tests fail with |
Let's see if there's a way to make this work. |
@AArnott Allright, finally got this working. In the end, it boils down to
CI for Ubuntu Disco is now green! Let me know if you think this can be merged, looking forward to (finally!) using nbvg on my Raspberry Pi 4 😄 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for getting this working!
A few questions, possibly with follow-up changes depending on your answers, and we'll get this merged.
<!-- Download version 2.0.280-armpreview01 of LibGit2Sharp.NativeBinaries. This builds from the same libgit2 commit (git2-572e4d8) as | ||
0.27.0-preview-0007, but includes arm64 binaries. | ||
This explicit dependency should be removed when upgrading to a newer version of LibGit2Sharp. --> | ||
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="2.0.280-armpreview01" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this reference the entire reason for this project?
If so, can we simply move it into an existing project (and set PrivateAssets="all"
on it) or use the PackageDownload
item?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't know about the PackageDownload
item. Looks much cleaner now. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the downside, PackageDownload
works start with .NET SDK 2.2 which somehow broke the layout of the nbgv.cli
folder used by the npm package. I replaced the copy mechanism with the output of dotnet publish
, that seems to do the trick.
@@ -15,6 +15,11 @@ internal class GitLoaderContext : AssemblyLoadContext | |||
{ | |||
public static readonly GitLoaderContext Instance = new GitLoaderContext(); | |||
|
|||
// When invoked as a MSBuild task, the native libraries will be at | |||
// ../runtimes. When invoked from the nbgv CLI, the libraries | |||
// will be at ./runtimes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we beef up this comment to explain where this property gets set to ./runtimes
? I finally found it elsewhere in this PR, but just looking at the comment it is not at all clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I updated the comments.
@AArnott. I think I adressed your comments. Let me know if there's anything else you need! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good. I made a couple minor changes and will merge.
GitLoaderContext
. This fixes loading of libgit2.so when invoking nbgv on the platforms listed above.