Skip to content

Commit

Permalink
[amplify] Version lock 'bundler' to v2.3.20
Browse files Browse the repository at this point in the history
Recent updates of the Ruby Gem dependency management utility, 'bundler',
introduced a breakage to the 'jekyll-theme-chirper' Ruby Gem starting
from version v2.3.21: rubygems/rubygems#4488

```
2022-12-03T02:23:00.509Z [WARNING]: Could not find gem
'jekyll-theme-chirpy (~> 5.2, >= 5.2.1)' with platform
                                    'x86_64-linux' in rubygems
repository https://rubygems.org/ or installed
                                    locally.
                                    The source contains the following
gems matching 'jekyll-theme-chirpy (~> 5.2, >=
                                    5.2.1)':
                                    * jekyll-theme-chirpy-5.2.1
                                    * jekyll-theme-chirpy-5.3.0
                                    * jekyll-theme-chirpy-5.3.1
                                    * jekyll-theme-chirpy-5.3.2


```

The Ruby Gem dependency management utility, 'bundler', has the same
functionality as its aliased variant 'bundle` (ref:
rubygems/bundler@2894378).

To simplify the AWS Amplify CI/CD pipeline this commit leverages the
'bundle' utility preinstalled in the 'Amazon Linux:2' build image (Docker
container).

The 'Amazon Linux:2' build image contains 'bundle' version 2.0.1. This
version was released almost 4 years ago:
rubygems/bundler@d7ad219.
The latest version of 'bundler' currently available is 2.3.26, however
  • Loading branch information
penguinspiral committed Dec 4, 2022
1 parent 8ed6ea8 commit 1df1279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frontend:
preBuild:
commands:
- rvm --default use $VERSION_RUBY_2_6
- gem install bundler
- gem install bundler --version 2.3.20
- bundler
build:
commands:
Expand Down

0 comments on commit 1df1279

Please sign in to comment.