-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Increase maximum SQLite variables count to 32766 #11696
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
Changes from 11 commits
bd6d62d
dc91a1f
f99c039
80f128d
6e52783
0924f3c
157816d
5e7edba
9c5cd1c
89c8b9d
d0357c8
9bdd70d
bf7c440
fa4501b
ae17e44
1f3ceca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ ENV GOPROXY ${GOPROXY:-direct} | |
ARG GITEA_VERSION | ||
ARG TAGS="sqlite sqlite_unlock_notify" | ||
ENV TAGS "bindata $TAGS" | ||
ARG CGO_EXTRA_CFLAGS="" | ||
|
||
#Build deps | ||
RUN apk --no-cache add build-base git nodejs npm | ||
|
@@ -18,8 +19,9 @@ COPY . ${GOPATH}/src/code.gitea.io/gitea | |
WORKDIR ${GOPATH}/src/code.gitea.io/gitea | ||
|
||
#Checkout version if set | ||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \ | ||
&& make clean-all build | ||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi && \ | ||
export CGO_CFLAGS="$(go env CGO_CFLAGS) -DSQLITE_MAX_VARIABLE_NUMBER=32766 $CGO_EXTRA_CFLAGS" && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this $CGO_EXTRA_CFLAGS duplicating with the variable before? Should probably remove it or fix inheritance from the main makefile which seems to not work based on @techknowlogick's link above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, let me revert the changes to dockerfile. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pushed changes, and will review CI output before merge. |
||
make clean-all build | ||
|
||
FROM alpine:3.11 | ||
LABEL maintainer="maintainers@gitea.io" | ||
|
Uh oh!
There was an error while loading. Please reload this page.