Update README.md and remove windows limitation

This commit is contained in:
crazywhalecc
2025-02-06 11:54:42 +08:00
parent 4f063fac80
commit afa65441a4
2 changed files with 0 additions and 11 deletions

View File

@@ -335,10 +335,3 @@ and they all have their own open source licenses.
Please use the `bin/spc dump-license` command to export the open source licenses used in the project after compilation,
and comply with the corresponding project's LICENSE.
## Troubleshooting
When downloading extensions, you may eventually see errors like `curl: (56) The requested URL returned error: 403` which are often caused by github rate limiting.
You can verify this by adding `--debug` to the command and will see something like `[DEBU] Running command (no output) : curl -sfSL "https://api.github.com/repos/openssl/openssl/releases"`.
To fix this, [create](https://github.com/settings/tokens) a personal access token on GitHub and set it as an environment variable `GITHUB_TOKEN=<XXX>`.

View File

@@ -16,10 +16,6 @@ class opentelemetry extends Extension
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
throw new \RuntimeException('The opentelemetry extension requires PHP 8.0 or later');
}
if (PHP_OS_FAMILY === 'Windows') {
throw new \RuntimeException('opentelemetry extension does not support windows yet');
}
}
public function patchBeforeMake(): bool