mirror of
https://github.com/php/pie.git
synced 2026-03-23 23:12:17 +01:00
Fix self-update command issues
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"alias": "pie.phar",
|
||||
"output": "pie.phar",
|
||||
"git": "pie_version"
|
||||
"git": "pie_version",
|
||||
"force-autodiscovery": true,
|
||||
"directories": [
|
||||
"resources"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ final class GithubPackageReleaseAssets implements PackageReleaseAssets
|
||||
$decodedRepsonse = $httpDownloader->get(
|
||||
$this->githubApiBaseUrl . '/repos/' . $package->githubOrgAndRepository() . '/releases/tags/' . $package->version(),
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => $authHelper->addAuthenticationHeader([], $this->githubApiBaseUrl, $package->downloadUrl()),
|
||||
|
||||
@@ -37,7 +37,7 @@ final class FetchPieReleaseFromGitHub implements FetchPieRelease
|
||||
$decodedRepsonse = $this->httpDownloader->get(
|
||||
$url,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => $this->authHelper->addAuthenticationHeader([], $this->githubApiBaseUrl, $url),
|
||||
@@ -81,7 +81,7 @@ final class FetchPieReleaseFromGitHub implements FetchPieRelease
|
||||
$pharContent = $this->httpDownloader->get(
|
||||
$releaseMetadata->downloadUrl,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => $this->authHelper->addAuthenticationHeader([], $this->githubApiBaseUrl, $releaseMetadata->downloadUrl),
|
||||
|
||||
@@ -285,7 +285,7 @@ final class FallbackVerificationUsingOpenSsl implements VerifyPiePhar
|
||||
$decodedJson = $this->httpDownloader->get(
|
||||
$attestationUrl,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => $this->authHelper->addAuthenticationHeader([], $this->githubApiBaseUrl, $attestationUrl),
|
||||
|
||||
@@ -36,7 +36,7 @@ final class FetchPieReleaseFromGitHubTest extends TestCase
|
||||
->with(
|
||||
$url,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => ['Authorization: Bearer fake-token'],
|
||||
@@ -91,7 +91,7 @@ final class FetchPieReleaseFromGitHubTest extends TestCase
|
||||
->with(
|
||||
$url,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => ['Authorization: Bearer fake-token'],
|
||||
|
||||
@@ -142,7 +142,7 @@ EOF);
|
||||
->with(
|
||||
$url,
|
||||
[
|
||||
'retry-auth-failure' => false,
|
||||
'retry-auth-failure' => true,
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => ['Authorization: Bearer fake-token'],
|
||||
|
||||
Reference in New Issue
Block a user