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 the latest SQLite version instead of locking it to a specific one #215

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private static function get_behat_internal_variables() {
* for use in subsequent WordPress copies
*/
private static function download_sqlite_plugin( $dir ) {
$download_url = 'https://github.com/WordPress/sqlite-database-integration/archive/refs/tags/v2.1.11.zip';
$download_url = 'https://downloads.wordpress.org/plugin/sqlite-database-integration.zip';
$download_location = $dir . '/sqlite-database-integration.zip';

if ( ! is_dir( $dir ) ) {
Expand Down Expand Up @@ -364,13 +364,6 @@ private static function download_sqlite_plugin( $dir ) {
$error_message = $zip->getStatusString();
throw new RuntimeException( sprintf( 'Failed to open the zip file: %s', $error_message ) );
}

// For the release downloaded from GitHub, the unzipped folder will contain the version number.
// We're renaming the folder here for consistency's sake.
rename(
$dir . '/sqlite-database-integration-2.1.11/',
$dir . '/sqlite-database-integration/'
);
}

/**
Expand Down
Loading