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

Switch from using .zip to .tar.gz for basset archives #31

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

jnoordsij
Copy link
Contributor

WHY

BEFORE - What was wrong? What was happening before this PR?

The @bassetArchive calls where using the .zip format. This is not supported by default on all PHP installations (see also Laravel-Backpack/basset#60).

AFTER - What is happening after this PR?

Use the .tar.gz format, which was also available for these archives, and is enabled in PHP by default on all installations (see https://www.php.net/manual/en/phar.installation.php).

HOW

How did you achieve that, in technical terms?

Change the archive extensions.

Is it a breaking change or non-breaking change?

No.

How can we test the before & after?

Ensure assets still work fine.

@tabacitu
Copy link
Member

tabacitu commented Jul 5, 2023

Uuu that's brilliant! Thanks @jnoordsij

@promatik
Copy link
Member

promatik commented Jul 6, 2023

Nice!
Thank you @jnoordsij 👌

Basset supports both .zip and .tar.gz if the .tar.gz is widely supported by PHP, let's move to it 👌

@tabacitu tabacitu merged commit 8208408 into Laravel-Backpack:main Jul 7, 2023
2 of 3 checks passed
@jnoordsij jnoordsij deleted the switch-zip-to-targz branch July 7, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants