Skip to content

Conversation

elcritch
Copy link
Contributor

@elcritch elcritch commented Sep 19, 2025

Previously update would only look for new tags. This breaks on repos not using tags for versioning. This PR improves it to first looks for tags, if none are found it will update the repo directly.

The repo update command has also been changed to git fetch origin "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*" which will update origin as well as try to update any local branches. This should improve workflows. I left an option to only update the origin refs in case it causes trouble or it's wanted. Currently it's not plumbed out.

Finally, fixed the documentation. There's only atlas update.

@elcritch elcritch marked this pull request as draft September 19, 2025 09:28
@elcritch elcritch marked this pull request as ready for review September 19, 2025 10:08
@elcritch elcritch changed the title improve updates improve update command Sep 19, 2025
return cc.strip()

proc isOutdated*(path: Path): (bool, int) =
proc isOutdated*(path: Path): Option[tuple[outdated: bool, newTags: int]] =
Copy link
Member

Choose a reason for hiding this comment

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

Fine for now but ideally the name becomes something like fetchNewTags.

Copy link
Contributor Author

@elcritch elcritch Sep 19, 2025

Choose a reason for hiding this comment

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

I renamed it hasNewTags and it returns an option now.

@Araq Araq merged commit 6b3eb33 into nim-lang:master Sep 21, 2025
16 checks passed
elcritch added a commit to elcritch/atlas that referenced this pull request Oct 13, 2025
* update updates

* update updates

* update

* update

* update

* update

* update

* swap to option to represent no answer

* swap to option to represent no answer from isOutdated

* swap to option to represent no answer from isOutdated

* rename

* rename

* rename again
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