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

Document versions policy stuff #128

Merged
merged 8 commits into from
Feb 21, 2018
Merged

Document versions policy stuff #128

merged 8 commits into from
Feb 21, 2018

Conversation

philpennock
Copy link
Contributor

@philpennock philpennock commented Feb 16, 2018

Closes #70.

* 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
1.1 1.10 1.2 is bad.
1.1 1.2 .. 1.9 1.10 is good.
@philpennock
Copy link
Contributor Author

NB: Do not merge until #130 is approved and merged into this; GitHub handles stacked PRs very badly.
(In turn, #130 needs #131 merged into it)

@AlekSi
Copy link
Contributor

AlekSi commented Feb 21, 2018

Edited first comment to convert a text reference to a link.

philpennock and others added 4 commits February 21, 2018 13:07
Another issue caught by AlekSi: the code updating the known versions
didn't handle `~/.gimme/versions/` not already existing.
Add .x resolution and --resolve command
Copy link
Contributor

@meatballhat meatballhat left a comment

Choose a reason for hiding this comment

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

🎺 🐢

@philpennock philpennock merged commit 5d537b3 into master Feb 21, 2018
@philpennock philpennock deleted the doc_versions_policy branch February 21, 2018 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants