1
0
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:
James Titcumb
2025-05-05 22:24:19 +01:00
parent 453a462259
commit 0a5e160a50
6 changed files with 12 additions and 8 deletions

View File

@@ -1,5 +1,9 @@
{
"alias": "pie.phar",
"output": "pie.phar",
"git": "pie_version"
"git": "pie_version",
"force-autodiscovery": true,
"directories": [
"resources"
]
}

View File

@@ -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()),

View File

@@ -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),

View File

@@ -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),

View File

@@ -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'],

View File

@@ -142,7 +142,7 @@ EOF);
->with(
$url,
[
'retry-auth-failure' => false,
'retry-auth-failure' => true,
'http' => [
'method' => 'GET',
'header' => ['Authorization: Bearer fake-token'],