Skip to content

Commit

Permalink
fix: retrieve Drupal 11 sqlite3 packages from snapshot.debian.org (#6175
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rfay committed May 13, 2024
1 parent e694c20 commit ac926de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/ddevapp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -958,15 +958,17 @@ func (app *DdevApp) RenderComposeYAML() (string, error) {
}
if app.Type == nodeps.AppTypeDrupal {
// TODO: When ddev-webserver has required drupal 11+ sqlite version we can remove this.
// These packages must be retrieved from snapshot.debian.org. We hope they'll be there
// when we need them.
drupalVersion, err := GetDrupalVersion(app)
if err == nil && drupalVersion == "11" {
extraWebContent = extraWebContent + "\n" + fmt.Sprintf(`
### Drupal 11+ requires a minimum sqlite3 version (3.45 currently)
ARG TARGETPLATFORM
ENV SQLITE_VERSION=%s
RUN mkdir -p /tmp/sqlite3 && \
wget -O /tmp/sqlite3/sqlite3.deb https://ftp.debian.org/debian/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETPLATFORM##linux/}.deb && \
wget -O /tmp/sqlite3/libsqlite3.deb https://ftp.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETPLATFORM##linux/}.deb && \
wget -O /tmp/sqlite3/sqlite3.deb https://snapshot.debian.org/archive/debian/20240203T152533Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETPLATFORM##linux/}.deb && \
wget -O /tmp/sqlite3/libsqlite3.deb https://snapshot.debian.org/archive/debian/20240203T152533Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETPLATFORM##linux/}.deb && \
apt install -y /tmp/sqlite3/*.deb && \
rm -rf /tmp/sqlite3
`, versionconstants.Drupal11RequiredSqlite3Version)
Expand Down

0 comments on commit ac926de

Please sign in to comment.