Actions
Bug #15900
closed[API] [Workbench1] [SDKs] ruby gems report wrong version number
Story points:
-
Release:
Release relationship:
Auto
Description
Example:
- sdk/ruby/arvados.gemspec reports itself as 1.4.1.timestamp1
- services/api/Gemfile pins an arvados gem version by commit hash, and bundler writes "1.4.1.timestamp1" in Gemfile.lock
- bundler succeeds at version 1.4.1.timestamp2
- sometime later, a 1.4.2 tag is added somewhere in the repo
- checkout version 1.4.1.timestamp2 and run bundler
- bundler checks out the specified git hash, but the resulting arvados.gemspec now reports itself as 1.4.2.timestamp1
- bundler fails at version 1.4.1.timestamp2
The "use git tag to figure out version at runtime" code used to use the latest tag reachable from HEAD, which makes recent/dev versions appear older than they really are (e.g., 1.4.2 isn't an ancestor of master) -- then it changed in ff48e70fd7cc41997a27c0b04bb38149a6abfa0d to report the highest version in the repo, which makes older/released versions appear newer than they really are.
Actions