Skip to content

Bug: Infinite loop if using "transloco-keys-manager find" within lefthook #219

@jase88

Description

@jase88

Is there an existing issue for this?

  • I have searched the existing issues

Is this a regression?

No

Current behavior

We're using lefthook for managing git hooks.

If wrapping transloco-keys-manager find within lefthook there is a infinite loop. If setting interactive: true (see their documentation) everything works as expected. This should only be required of reading from stdin or querying TTY.

I had a closer look and it hangs as soon as entering logger.startSpinner( (https://github.com/jsverse/transloco-keys-manager/blob/master/src/utils/logger.ts#L12) which internally uses ora.

Expected behavior

By default it should be possible to use transloco.keys-manager without any interaction or it should be possible to use a flag like --no-interactive.

Please provide a link to a minimal reproduction of the bug

https://github.com/jase88/lefthook-transloco-keys-manager

Transloco Config

not relevant

Debug Logs

Please provide the environment you discovered this bug in

Transloco: 7.6.1
Transloco Keys Manager:
Angular: 18.2.14
Node: v22.14.0
Package Manager: npm
OS: MacOS

Additional context

evilmartians/lefthook#980

I would like to make a pull request for this bug

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions