PRQL / prql

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement
https://prql-lang.org
Apache License 2.0
9.6k stars 208 forks source link

Script for updating version numbers? #4566

Closed richb-hanover closed 4 weeks ago

richb-hanover commented 4 weeks ago

What's up?

Looking at the ton of work in #4564 to update a version number in the PRQL project makes me ache for some kind of global "PRQL_VERSION__NUMBER" that would take care of all this fussy hand-work. But that's not likely to be possible.

I wonder if a script might be able to do this... The script would have to be somewhat clever, because we wouldn't want to change a non-PRQL version number in the file.

As a start, here's a list of the kinds of substitutions that were made, and the files they applied to.

Might this be worthwhile? Any other thoughts on this subject (before I fall into this rabbit hole)? Thanks.

Still manually Edited (or automatically regenerated)

s/"0.12.1"/"0.12.2"/g

s/'0.12.1'/'0.12.2'/g

'Generated with [prqlc](https:\//prql-lang.org/) 0.12.1.'

max-sixty commented 4 weeks ago

We have this! Check out https://github.com/PRQL/prql/blob/ff492a5a98dff52c429a39607eaa185111fdbead/web/book/src/project/contributing/development.md#L489 !

richb-hanover commented 4 weeks ago

WHEW! Another rabbit hole avoided :-) Thanks