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

fix: macos nightly build filename since #28000 #31

Merged
merged 5 commits into from
Mar 29, 2024

Conversation

linrongbin16
Copy link
Contributor

@linrongbin16 linrongbin16 commented Mar 29, 2024

Fix #30 .

This PR fixes the nightly nvim asset filename for macOS, since neovim/neovim#28000, Neovim nightly build on macOS is renamed from 'nvim-macos.tar.gz' to 'nvim-macos-arm64.tar.gz' and 'nvim-macos-x86_64.tar.gz'.

But seems I cannot test this PR with my forked repo: https://github.com/linrongbin16/action-setup-vim/tree/fix-macos-nightly, I'm blocked for now, will try to test it.


Update: this PR is tested here: linrongbin16#1

@linrongbin16 linrongbin16 marked this pull request as draft March 29, 2024 04:54
@linrongbin16 linrongbin16 marked this pull request as ready for review March 29, 2024 05:14
@rhysd
Copy link
Owner

rhysd commented Mar 29, 2024

Thank you. I'll take a look at this tonight.

@@ -46,6 +56,18 @@ export function assetDirName(version: string, os: Os): string {
if (v !== null && (v.minor < 7 || (v.minor === 7 && v.patch < 1))) {
return 'nvim-osx64';
}
// Until v0.9.5 release, 'nvim-macos' was the asset directory name on macOS. However it was changed to 'nvim-macos-arm64'
// and 'nvim-macos-x86_64' from v0.10.0: https://github.com/neovim/neovim/pull/28000
if (version === 'nightly') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After Neovim released the 0.10.0, this version will also need to detect < 0.10.0, similar to the detection for 0.7.1.

Copy link
Owner

Choose a reason for hiding this comment

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

Is the next version of Neovim fixed to 0.10.0? Or can it be 0.9.6?

Copy link
Contributor Author

@linrongbin16 linrongbin16 Mar 29, 2024

Choose a reason for hiding this comment

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

I think I had seen something, that Neovim team says 0.10.0 will release in April 2024.

But, I am not sure.

Copy link
Contributor Author

@linrongbin16 linrongbin16 Mar 29, 2024

Choose a reason for hiding this comment

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

Neovim team usually create a milestone for a version: https://github.com/neovim/neovim/milestones. (this is highly possible true because I had followed this issue list for over 2 years).

There's no 0.9.6 in these milestones, so I believe there will be no 0.9.6.

Copy link
Owner

Choose a reason for hiding this comment

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

OK, thank you for the information. I'll add the version check when the next version is fixed.

@rhysd rhysd merged commit 489a871 into rhysd:master Mar 29, 2024
26 checks passed
@rhysd
Copy link
Owner

rhysd commented Mar 29, 2024

@linrongbin16 linrongbin16 deleted the fix-macos-nightly branch March 29, 2024 22:11
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.

Bug: failed to download Neovim nightly for macOS
2 participants