Skip to content

Commit

Permalink
fix: fail gently if sqlite3 can't be downloaded for drupal11, fixes d…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Jul 26, 2024
1 parent 2de1980 commit c2aca52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ddevapp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,11 +988,11 @@ func (app *DdevApp) RenderComposeYAML() (string, error) {
extraWebContent = extraWebContent + "\n" + fmt.Sprintf(`
### Drupal 11+ requires a minimum sqlite3 version (3.45 currently)
ARG SQLITE_VERSION=%s
RUN mkdir -p /tmp/sqlite3 && \
RUN ( mkdir -p /tmp/sqlite3 && \
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-get install -y /tmp/sqlite3/*.deb && \
rm -rf /tmp/sqlite3
rm -rf /tmp/sqlite3 ) || true
`, versionconstants.Drupal11RequiredSqlite3Version)
}
}
Expand Down

0 comments on commit c2aca52

Please sign in to comment.