When plrust goes through a release cycle, occasionally (read: pretty much "almost" every time) we forget to update the hard-coded pgrx version in the plrust/build script due to the fact that our automated release tooling does not consider nor modify the script file. With the changes in this PR, we programmatically get the pgrx version using cargo tree and some unix utils magic so that nobody has to think about updating that value ever again upon release.
Addresses: https://github.com/tcdi/plrust/issues/377
When plrust goes through a release cycle, occasionally (read: pretty much "almost" every time) we forget to update the hard-coded pgrx version in the
plrust/build
script due to the fact that our automated release tooling does not consider nor modify the script file. With the changes in this PR, we programmatically get the pgrx version usingcargo tree
and some unix utils magic so that nobody has to think about updating that value ever again upon release.