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

Can there be a stable/latest branch to follow? #113

Closed
ahayzen opened this issue Dec 7, 2024 · 3 comments
Closed

Can there be a stable/latest branch to follow? #113

ahayzen opened this issue Dec 7, 2024 · 3 comments
Assignees
Labels
ci Build infra and CI related work enhancement New feature or request

Comments

@ahayzen
Copy link

ahayzen commented Dec 7, 2024

Disko have a branch that contains the latest stable release github:nix-community/disko/latest.

It would be nice to have similar for nix-flatpak as then I could use github:gmodena/nix-flatpak/latest in the flake.nix, have CI update the lock file and perform tests to ensure that things still work.

Currently I need to monitor this repo and manually update the git url to match the ref of a release.

@gmodena
Copy link
Owner

gmodena commented Dec 8, 2024

Hi @ahayzen,

Thanks for reaching out. I am not fond of the long-lived branches workflow, so I don't see a stable branch happening. However, I think what you're asking could be addressed by simply adding a latest tag that points to the most recent tagged commit. I am not familiar with disko, but I suppose that is what they are doing: https://github.com/nix-community/disko/tags.

If this does not break the flakeHub publication workflow, I see no problem with auto-tagging with latest on release.

@gmodena gmodena added enhancement New feature or request ci Build infra and CI related work labels Dec 8, 2024
@gmodena gmodena self-assigned this Dec 13, 2024
@gmodena
Copy link
Owner

gmodena commented Dec 13, 2024

Took me some fiddling, but the tagging workflow is now automated.

https://github.com/gmodena/nix-flatpak/releases/tag/latest points to 8bdc254, the most recent commit tagged as v0.5.2 .

You can track the latest release with:

nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";

Or alternatively:

nix-flatpak.url = "github:gmodena/nix-flatpak/latest";

@gmodena gmodena closed this as completed Dec 13, 2024
@ahayzen
Copy link
Author

ahayzen commented Dec 13, 2024

Awesome! Thank you for quickly adding this :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Build infra and CI related work enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants