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

Feature request: if --branch is used, give all tags or at least the latest tag in the repository #60

Open
hab25 opened this issue Jan 22, 2024 · 2 comments

Comments

@hab25
Copy link

hab25 commented Jan 22, 2024

Use case: I'd rather follow the latest tag of https://github.com/nix-community/nixGL rather than the main branch, but it doesn't currently use tags. However, it could start using tags in the future. I'd like to be notified, at update time, if this has happened1.

To do this, I'd like to do something like assert (import ./npins).nixGL.tags == []; ....

I.e., the above assert should pass, even if nixGL has been added via npins add git https://github.com/nix-community/nixGL --branch main, iff the nixGL repository has no git tags.

Footnotes

  1. While I could, to be notified even earlier than update time, instead RSS-subscribe to https://github.com/nix-community/nixGL/tags.atom, this would be a fragile coupling because this RSS-feed feature is not part of git; GitHub is proprietary and could decide to break it once they start thinking that keeping the feature around wouldn't be profitable enough.

@piegamesde
Copy link
Collaborator

Would GitHub's "watch new releases" be an option for you?

@hab25
Copy link
Author

hab25 commented Jan 22, 2024

Would GitHub's "watch new releases" be an option for you?

It is an option, but a fragile one, like the RSS method described in the footnote. It is also GitHub specific. I.e., it is not an open widely-used standard with open source implementation(s).

It suffers from the same fundamental problem:

GitHub is proprietary and could decide to break it once they start thinking that keeping the feature around wouldn't be profitable enough.

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

No branches or pull requests

2 participants