Skip to content
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

Prepare for uploading Pacman packages targeting Windows/ARM64 #458

Merged
merged 3 commits into from
Dec 22, 2022

Conversation

dscho
Copy link
Member

@dscho dscho commented Dec 22, 2022

This should be enough to get that part of the deployment working. The idea is that we will have two new package indices, a full one and a MINGW-only one. Until the time when Cygwin starts supporting Windows/ARM64, these will contain the same set of packages.

The idea is that we can then set up /etc/pacman.conf in git-sdk-arm64 to contain these lines:

[git-for-windows]
# Once Cygwin starts supporting Windows/ARM64, we can switch to aarch64
Server = https://wingit.blob.core.windows.net/x86-64

[git-for-windows-aarch64]
Server = https://wingit.blob.core.windows.net/aarch64

In `push` and `push_missing_signatures`, we need to skip sources for
architectures other than x86_64, and MINGW packages for other
architectures than the current one.

The logic worked, but was convoluted, and unnecessarily verbose.

Let's fix this, and at the same time future-proof the code: We are about
to introduce support for packages targeting Windows/ARM64.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
We do not have any official packages in Git for Windows targeting
Windows/ARM64 yet. But this is about to change.

This commit is best viewed with `-w`.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho requested a review from dennisameling December 22, 2022 12:33
@dscho dscho self-assigned this Dec 22, 2022
Copy link
Contributor

@dennisameling dennisameling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Though I don't really have a way to test this, the code looks good 👍🏼 let's test with one or two packages whether everything works as expected. Let me know if I can help with that!

@dscho
Copy link
Member Author

dscho commented Dec 22, 2022

Thank you! Though I don't really have a way to test this, the code looks good 👍🏼 let's test with one or two packages whether everything works as expected. Let me know if I can help with that!

@dennisameling ideally, I would like to see git-for-windows/git-for-windows-automation#5 and git-for-windows/git-for-windows-automation#4 merged, and then build a git-extra using that.

@dscho dscho merged commit 3cda9eb into git-for-windows:main Dec 22, 2022
@dscho dscho deleted the pacman-helper-and-aarch64 branch December 22, 2022 20:25
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

Successfully merging this pull request may close these issues.

2 participants