Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use curl to fetch k6 binary with CURLOPT_FOLLOWLOCATION #25

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

RobinWieske
Copy link

This pr solves an issue where github redirected while the plugin tried to download the k6 binary by using curl instead of file_get_contents.

I had the issue several times while I tried to set up stress testing in my ci workflow. Github always redirected to https://objects.githubusercontent.com/<...>.

Please let me now if there is anything I need to adjust.

FYI:
composer test:types fails because of missing ./vendor/ergebnis/phpstan-rules/rules.neon (not required in composer.json) and even with it installed it fails with:

105    Method Pest\Stressless\Plugin::extractPayload() should return array<string, mixed> but returns array.

Makes use of `CURLOPT_FOLLOWLOCATION` to allow a redirect on github.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant