Enable target overrides for package? (netcoredbg macOS arm64) #1628
Cliffback
started this conversation in
API suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Netcoredbg doesn't have native arm64 macOS binaries in their releases, and as far as I can tell, it doesn't seem like it will happen in the near future either. The problem with this is that netcoredbg installed via Mason won't work on Apple Silicon machines at all.
As a quick and dirty way to solve it, I wrote a plugin for integrating my compiled binaries with nvim-dap: netcoredbg-macOS-arm64.nvim
But this doesn't really solve the issue with being able to use it with Mason, so I was wondering if it is possible to make target_overrides the same way version_overrides work in the registry?
Then it would be possible to specify a different repo for a specific target platform. As en example, then I could host the binaries for macOS arm64, and a target override in the package.yaml for netcoredbg could have an alternate repo than the rest of the targets. I put this in Example 2 below.
An alternative would be to make each target also possible to have an id that overrides the source id and would mean fewer lines. I put this in example 1.
For netcoredbg at least, one of these soulutions would make it way easier for the folks on newer macs.
Example 1:
Example 2:
I don't know if this is a feasible solution, or if it is out of the question to handle it this way, so just take it for what its worth :)
Anyways, for netcoredbg, darwin_arm64 should be removed from the netcoredbg registry as long as it points to the samsung source repo, as the binary there is just for amd64, and I spent a long while debugging why it didn't work, before I found the cause
Cheers
Beta Was this translation helpful? Give feedback.
All reactions