Skip to content

Commit 7455255

Browse files
committed
Fix gem removal depth and path per Copilot review
- Change -maxdepth 3 to -maxdepth 4 (net-imap gemspec is at depth 4) - Change specifications/default/ to specifications/ (net-imap is a regular gem, not a default gem) The original pattern was copied from json/erb fixes but net-imap has a different gem structure.
1 parent 465dca9 commit 7455255

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docker/Dockerfile.assemble

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ RUN /tmp/install-conda-deps.sh /tmp/requirements/baseimage.txt /tmp/requirements
4545
find /opt/conda/lib/ruby -maxdepth 3 -name 'erb*' -exec rm -rf {} + && \
4646
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/erb-*.gemspec && \
4747
gem install erb --version '>=6.0.4' --no-document && \
48-
find /opt/conda/lib/ruby -maxdepth 3 -name 'net-imap*' -exec rm -rf {} + && \
49-
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/net-imap-*.gemspec && \
48+
find /opt/conda/lib/ruby -maxdepth 4 -name 'net-imap*' -exec rm -rf {} + && \
49+
rm -f /opt/conda/lib/ruby/gems/*/specifications/net-imap-*.gemspec && \
5050
gem install net-imap --version '>=0.6.4' --no-document
5151

5252
# Copy source code (includes assembly module)

docker/Dockerfile.mega

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ RUN /tmp/install-conda-deps.sh /tmp/requirements/baseimage.txt /tmp/requirements
4444
find /opt/conda/lib/ruby -maxdepth 3 -name 'erb*' -exec rm -rf {} + && \
4545
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/erb-*.gemspec && \
4646
gem install erb --version '>=6.0.4' --no-document && \
47-
find /opt/conda/lib/ruby -maxdepth 3 -name 'net-imap*' -exec rm -rf {} + && \
48-
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/net-imap-*.gemspec && \
47+
find /opt/conda/lib/ruby -maxdepth 4 -name 'net-imap*' -exec rm -rf {} + && \
48+
rm -f /opt/conda/lib/ruby/gems/*/specifications/net-imap-*.gemspec && \
4949
gem install net-imap --version '>=0.6.4' --no-document
5050

5151
# Copy source code (includes all modules)

docker/Dockerfile.phylo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ RUN /tmp/install-conda-deps.sh /tmp/requirements/baseimage.txt /tmp/requirements
4242
find /opt/conda/lib/ruby -maxdepth 3 -name 'erb*' -exec rm -rf {} + && \
4343
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/erb-*.gemspec && \
4444
gem install erb --version '>=6.0.4' --no-document && \
45-
find /opt/conda/lib/ruby -maxdepth 3 -name 'net-imap*' -exec rm -rf {} + && \
46-
rm -f /opt/conda/lib/ruby/gems/*/specifications/default/net-imap-*.gemspec && \
45+
find /opt/conda/lib/ruby -maxdepth 4 -name 'net-imap*' -exec rm -rf {} + && \
46+
rm -f /opt/conda/lib/ruby/gems/*/specifications/net-imap-*.gemspec && \
4747
gem install net-imap --version '>=0.6.4' --no-document
4848

4949
# Copy source code (includes phylo module)

0 commit comments

Comments
 (0)