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

stable cache will not refresh properly on non-Linux #129

Closed
philpennock opened this issue Feb 17, 2018 · 0 comments
Closed

stable cache will not refresh properly on non-Linux #129

philpennock opened this issue Feb 17, 2018 · 0 comments
Assignees
Labels

Comments

@philpennock
Copy link
Contributor

[While writing a new feature, I spotted a flaw; filing a bug for tracking independently of the new feature. I expect to close this soon if not interrupted.]

The _stat_unix function uses modification time on Unix, but last access time on macOS and BSDs.

Thus repeated accesses of stable will never result in stable being checked to be current.

@philpennock philpennock self-assigned this Feb 17, 2018
philpennock added a commit that referenced this issue Feb 17, 2018
* New persistent file, `~/.gimme/versions/known-versions.txt`, which is
  kept in sorted unique order
* Add `--resolve` for handling version specifiers in a
  normally-lightweight manner, where stdout gets the resolved version.
* Handle `NN.x` (and `NN.MM.x`) as a version specifier, against the
  known versions
* Have the `--known` output be cached to disk; there's a cache bypass
  mechanism (flag), and a cache age control environment variable.
* Rework some cache handling stuff to be in cleaner functional
  abstractions
* Adds a `_version_sort` filter
* Bug-fix for stable age using access-time not mod-time on darwin|*bsd

See the README updates for notes on interaction between `--resolve` and
git tag resolution, and how to avoid that.

Fixes #129
Resolves #110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant