Cannot run in no-git env
See original GitHub issueBecause 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:
- Created a year ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
This works on Vercel https://github.com/perfsee/perfsee/commit/81d012fa10df292279d41f8ddd64858f7218a64b