Skip to content

Commit 4b7d0c5

Browse files
committedJan 2, 2025
api: Specify ruby bundler for api gen
This patch updates the Dockerfile used to generate API bindings to specify an explicit version of the Ruby bundler program. This is required since an older version of Ruby is used as the newer ones are not compatible with the API generation code. Signed-off-by: akutz <andrew.kutz@broadcom.com>
1 parent f238201 commit 4b7d0c5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
 

‎gen/Dockerfile

+11-5
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ ENV PATH="/root/.rbenv/shims:${PATH}" \
5555
RUN apt-get install -y rbenv && \
5656
rbenv install 2.7.6 && \
5757
rbenv rehash && \
58-
rbenv global 2.7.6 && \
59-
gem install bundler
58+
rbenv global 2.7.6
59+
60+
RUN gem install bundler -v 2.4.22
6061

6162

6263
## --------------------------------------
@@ -71,6 +72,11 @@ WORKDIR /govmomi/gen
7172
## --------------------------------------
7273

7374
COPY Gemfile Gemfile.lock .
74-
RUN go install golang.org/x/tools/cmd/goimports@latest && \
75-
bundle update --bundler && \
76-
bundle install
75+
RUN bundle update --bundler && bundle install
76+
77+
78+
## --------------------------------------
79+
## Install goimports to forma gen'd files
80+
## --------------------------------------
81+
82+
RUN go install golang.org/x/tools/cmd/goimports@latest

0 commit comments

Comments
 (0)
Please sign in to comment.