-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix parsing some YAMLs due to outdated libyaml #7112
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 all commits
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 |
|---|---|---|
|
|
@@ -95,13 +95,24 @@ COPY --from=ruby:3.1.4 --chown=dependabot:dependabot /usr/local /usr/local | |
| # This way other projects that import this library don't have to futz around with installing new / unexpected bundler versions. | ||
| ARG BUNDLER_V2_VERSION=2.4.11 | ||
|
|
||
| # We had to explicitly bump this as the bundled version `0.2.2` in ubuntu 20.04 has a bug. | ||
| # Once Ubuntu base image pulls in a new enough yaml version, we may not need to | ||
| # explicitly manage this. However, if we do opt to pull it back out, see all changes | ||
| # required in https://github.com/dependabot/dependabot-core/pull/7112 | ||
| ARG LIBYAML_VERSION=0.2.5 | ||
| RUN curl -sL https://pyyaml.org/download/libyaml/yaml-$LIBYAML_VERSION.tar.gz -o libyaml.tar.gz && \ | ||
| mkdir -p $DEPENDABOT_HOME/src/libyaml && \ | ||
| tar -xvf libyaml.tar.gz -C $DEPENDABOT_HOME/src/libyaml && \ | ||
| rm libyaml.tar.gz | ||
|
|
||
| RUN gem install bundler -v $BUNDLER_V2_VERSION --no-document && \ | ||
| rm -rf /var/lib/gems/*/cache/* && \ | ||
| bundle config set --global build.psych --with-libyaml-source-dir=$DEPENDABOT_HOME/src/libyaml/yaml-$LIBYAML_VERSION && \ | ||
| bundle config set --local path 'vendor' && \ | ||
| bundle config set --local frozen 'true' && \ | ||
| bundle config set --local without 'development' && \ | ||
| bundle install && \ | ||
| rm -rf ~/.bundle | ||
| rm -rf ~/.bundle/cache | ||
|
||
|
|
||
| COPY --chown=dependabot:dependabot LICENSE $DEPENDABOT_HOME | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.