question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run in no-git env

See original GitHub issue

Because of this code:

export const BUILD_ENV: BuildEnv = {
  isCi: envs.isCi,
  pwd: 'root' in envs && envs.root ? envs.root : process.cwd(),
  platform: process.env.PERFSEE_PLATFORM_HOST ?? 'https://perfsee.com',
  upload: !process.env.PERFSEE_NO_UPLOAD && envs.isCi,
  git: gitEnvPromise.then((gitEnv) => (gitEnv ? Promise.resolve(gitEnv) : getGitEnv())),
}

in init, will call getGitEnv and fetch git context, but its not good in some no-git environment for example: vercel deploy.

Maybe we should get this variable when we use it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
forehalocommented, Oct 24, 2022

Thanks for you remind, and we definitely should avoid reading required information & computing during lib importing. We will work on it and solve this issue asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuget: The current environment doesn't have a solution open
In the package manager console, make sure to select the default project. If there are no choices, it means that there is no...
Read more >
whyleee/nogit: A command-line git client powered by ... - GitHub
Use this solution to set proxy settings for single environment only. 3) If your proxy only doesn't allow git:// URLs, you can add...
Read more >
git-config Documentation - Git
When the XDG_CONFIG_HOME environment variable is not set or empty, $HOME/.config/ is used as $XDG_CONFIG_HOME. These are also called "global" configuration ...
Read more >
Docker image template for Python applications
In this case, you don't have a Git branch, so instead it will use “nogit”. To run the resulting image, then, you'll need...
Read more >
nightscout/intend-to-bolus - Gitter
As a note: after running the oref0-setup.sh script, where I chose xdrip-js, there was no mention about logger or ... Couldn't install openaps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found