-
Notifications
You must be signed in to change notification settings - Fork 91
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
fix(build): Fetch with cli while updating the registry index #1570
Conversation
@@ -51,7 +51,8 @@ ENV RELAY_FEATURES=${RELAY_FEATURES} | |||
COPY . . | |||
|
|||
# Build with the modern compiler toolchain enabled | |||
RUN scl enable devtoolset-10 llvm-toolset-7.0 -- \ | |||
RUN echo -e "[net]\ngit-fetch-with-cli = true" > $CARGO_HOME/config \ | |||
&& scl enable devtoolset-10 llvm-toolset-7.0 -- \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be set on the command line, but I'm not sure if we want to change the Makefile for this. Maybe we can just insert a RUN cargo --config net.git-fetch-with-cli=true fetch
before this command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, in symbolic it's been done like this: getsentry/symbolic#585
Ideally we fix this for the binary and library builds alike.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excuse me, what does this command means (effect) in this case ? RUN cargo --config net.git-fetch-with-cli=true fetch
@jjbayer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jan-auer yeah, so that's what this PR does as well, just adds the config for cargo with same option.
👀 |
It looks like docker build was killed because it used too much memory while updating the registry index, when forcing cargo to use cli, I could pass the step when the index is updated and successfully build the image.
Fixes #1559
It seems related to rust-lang/cargo#9167
#skip-changelog