Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to uninstall? #405

Open
dcsan opened this issue Jan 22, 2025 · 0 comments
Open

how to uninstall? #405

dcsan opened this issue Jan 22, 2025 · 0 comments

Comments

@dcsan
Copy link

dcsan commented Jan 22, 2025

it seems this installs a bunch of ghooks files inside my .git directory
that break, so i can't commit now.

how do i uninstall this stuff?
since they're files inside .git/ they can't just be uninstalled.

these are the errors i get in a TS project.
and renaming to .mjs and using import doesn't help

overall this package should come with a warning that it will mess up your system.

➜  trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28
  const _nodeModulesPath = path.resolve(__dirname, '../', '../', 'node_modules')
                                        ^

ReferenceError: __dirname is not defined in ES module scope
    at getNodeModulesAbsoluteEntryPoint (file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28:41)
    at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:11:25
    at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)

Node.js v23.6.1
➜  trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4
const fs = require('fs')
           ^

ReferenceError: require is not defined in ES module scope, you can use import instead
    at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4:12
    at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant