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

[Bug] Throws exception when used in development mode in a git worktree #5738

Open
timcleaver opened this issue Feb 20, 2024 · 0 comments
Open
Labels

Comments

@timcleaver
Copy link

🐞 Bug report

Description

Throws exception when using hint cli in a git worktree.

Details

Steps to reproduce:

  1. git clone repository
  2. git worktree add develop ../develop
  3. cd ../develop
  4. hint /.

- (node:39249) [DEP0040] DeprecationWarning: The punycodemodule is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ... to show where the warning was created) ✖ Analyzing file:///Users/timcleave … e-static-assets-properly AnalyzerError: ENOTDIR: not a directory, stat '/Users/timcleaver/Documents/Idemitsu/idemitsu-harlequin-ui/worktrees/serve-static-assets-properly/.git/**' at Analyzer.analyze (/usr/local/lib/node_modules/hint/dist/src/lib/analyzer.js:151:23) at async exports.default (/usr/local/lib/node_modules/hint/dist/src/lib/cli/analyze.js:219:9) at async /usr/local/lib/node_modules/hint/dist/src/lib/cli/actions.js:8:20 at async Object.execute (/usr/local/lib/node_modules/hint/dist/src/lib/cli.js:38:23) at async run (/usr/local/lib/node_modules/hint/dist/src/bin/hint.js:21:24) { status: 'AnalyzeError' }

As per the way git worktrees work, .git is a file. The contents of the file point to the files in the real .git folder. see: https://git-scm.com/docs/git-worktree

Contents of .hintrc:
{ "extends": ["development"] }

@timcleaver timcleaver changed the title [Bug] Describe your bug here [Bug] Throws exception when used in development mode in a git worktree Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant