graphile / crystal-pre-merge

Repository moved
https://github.com/graphile/crystal
39 stars 8 forks source link

Make pg-sql2 and tamedevil tolerant of duplicate installs #367

Closed benjie closed 1 year ago

benjie commented 1 year ago

Store the symbol onto a global, use an internal revision counter, only bump the counter when incompatible versions occur, all instances using the same revision number use the same symbol and thus are compatible.

Remove 'thereCanOnlyBeOne'

Ensure we don't use instanceof

Thanks to @crubier for reporting; ref: https://discord.com/channels/489127045289476126/953710447087980654/1115230206102355968