elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.51k stars 564 forks source link

fix: Do not require Git for development #3015

Closed palant closed 4 weeks ago

palant commented 1 month ago

Running pnpm nuxt prepare currently fails for me:

ERROR  fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

That’s because the directory in question isn’t a Git repository.

Running from a Git repository or even having Git installed shouldn’t be a requirement. With my change errors originating from Git are ignored. The potential impact is negligible.

netlify[bot] commented 1 month ago

Deploy Preview for elk-docs canceled.

Name Link
Latest commit defad4c1fbf6204473b37f2377f3a6679ca30a36
Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/67190e85b6381d0008b62933
netlify[bot] commented 1 month ago

Deploy Preview for elk-zone ready!

Name Link
Latest commit defad4c1fbf6204473b37f2377f3a6679ca30a36
Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/67190e85ab42b60008c71aad
Deploy Preview https://deploy-preview-3015--elk-zone.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

palant commented 1 month ago

Just curious, What kind of environment are you working in? Is that something like a dev container with only minimal dependencies?

I’m using Mercurial. Any git repo is checked out via hg-git, so git won’t be able to do anything with it of course.

shuuji3 commented 4 weeks ago

Ah, I see. That's totally makes sense😄 This will help other Mercurial users.