edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Add flag to skip running hooks

Open MartinCura opened this issue 8 months ago • 1 comments

Hi beautiful people, Scott suggested i create an issue here.

I added some hooks to my gel.toml so that when i apply a migration it my codegen script runs (TS types, .edgeql builder, etc.).

Thing is they're being invoked in my CI when setting up the db with geldata/setup-gel. I'd like to skip that (more so because it silently errors out).

As a start a flag to skip running the hooks would be needed, no? e.g. a global flag --skip-hooks. And then maybe i'll have to bother you at that other repo.

Thank you!

MartinCura avatar Apr 24 '25 15:04 MartinCura

We've had a quick discussion about this and I've updated the RFC to add the --skip-hooks flag as well as a corresponding environment variable. https://github.com/geldata/rfcs/pull/112

@mmastrac, can you please implement this CLI flag and environment variable check?

vpetrovykh avatar Apr 24 '25 20:04 vpetrovykh