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

determine if local installation of a git repo needs updating, without relying on tag / release# / version# #1

Open
caver456 opened this issue Jun 13, 2022 · 2 comments

Comments

@caver456
Copy link
Contributor

caver456 commented Jun 13, 2022

Most of the NCSSAR home-brew python repo's don't use version numbering. While the clean way to do things would be to add version numbering / tag numbering to each repo, that's not completely reliable - what if a hotfix is made but no new tag is or the version number is not incremented? Then a simple version# / tag# comparison would not show a need for an update.

So, to be safer, compare the contents of the installation to the contents of the repo head. A recursive diff of the unzipped downloaded repo head would be one way.

To avoid doing this download-and-compare more often than necessary, maybe keep track of when the latest comparison was run, and what the file modification times were when the comparison was run, and run a comparison again if there are any file modification times more recent than the last comparison? Would need to account for config files / 'local' directories inside the unzipped dir tree, which would intentionally differ from the repo head.

Is there a better way?

@caver456 caver456 changed the title determine if local installation of a git repo needs updating, without relying on tag / release# / version determine if local installation of a git repo needs updating, without relying on tag / release# / version# Jun 13, 2022
@robsheldon
Copy link

Why "without relying on tag / etc..."? Mostly curious. Tags are the usual way to do this, afaik.

@caver456
Copy link
Contributor Author

caver456 commented Oct 11, 2022 via email

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