supabase / splinter

Supabase Postgres Linter
https://supabase.github.io/splinter/
70 stars 6 forks source link

bugfix: replace oid with md5 of in lint cache key #30

Closed olirice closed 3 months ago

olirice commented 3 months ago

What kind of change does this PR introduce?

oid is not a stable value across databases so using it as part of a lint's cache key causes tests to sporadically fail

This change replaces oid in the cache key with the md5 of the function's body, which is stable across test runs