Skip to content

Update stable snap to use stable branch, works for v0.10 #30

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

Merged
merged 1 commit into from
May 25, 2024
Merged

Update stable snap to use stable branch, works for v0.10 #30

merged 1 commit into from
May 25, 2024

Conversation

mlalkaka
Copy link
Contributor

The current implementation of the snapcraft.yaml file selects the stable tag based on a regex to identify versioned releases and sorting them to find the latest stable release. However, it uses a string/alphanumeric sort, which stopped working with version 0.10 of Neovim. At that point, this sorting approach deemed 0.10.0 to be less than 0.9.5.

This changes the tag to simply be "stable", which points to the stable tag.

Test Plan:

Generated snap metadata
Lint OK:
- classic: Snap confinement is set to classic.
Lint warnings:
- classic: usr/bin/nvim: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'. (https://snapcraft.io/docs/linters-classic)
Created snap package nvim_v0.10.0_amd64.snap

The current implementation of the snapcraft.yaml file selects the stable
tag based on a regex to identify versioned releases and sorting them
to find the latest stable release. However, it uses a
string/alphanumeric sort, which stopped working with version 0.10 of
Neovim. At that point, this sorting approach deemed 0.10.0 to be less
than 0.9.5.

This changes the tag to simply be "stable", which points to the stable
tag.

Test Plan:

```
Generated snap metadata
Lint OK:
- classic: Snap confinement is set to classic.
Lint warnings:
- classic: usr/bin/nvim: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'. (https://snapcraft.io/docs/linters-classic)
Created snap package nvim_v0.10.0_amd64.snap
```
@mlalkaka mlalkaka marked this pull request as ready for review May 25, 2024 08:51
@mlalkaka mlalkaka mentioned this pull request May 25, 2024
@justinmk justinmk merged commit fc06b13 into neovim:master May 25, 2024
@justinmk
Copy link
Member

Thanks for the clear explanation. "stable" is a tag not a branch, but it looks like you considered that, so I'll assume this will work.

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