Skip to content

Refactor build static gemfile script

Baodong请求将refactor-script-build-static-gemfile合并到main-jh

What does this MR do and why?

Refactor jh/bin/build_static_gemfile script.

./jh/bin/build_static_gemfile

outputs:

Replace "path: 'gem-path'" with "path: '../gem-path'"

Examples

Gemfile jh/Gemfile
path: 'vendor/gems/bundler-checksum' path: '../vendor/gems/bundler-checksum'
gem 'gitlab-utils', path: 'gems/gitlab-utils' gem 'gitlab-utils', path: '../gems/gitlab-utils'
# in vendor/gems/attr_encrypted/attr_encrypted.gemspec until we resolve # in ../vendor/gems/attr_encrypted/attr_encrypted.gemspec until we resolve
$LOAD_PATH.unshift(File.expand_path("vendor/gems/bundler-checksum/lib", __dir__)) $LOAD_PATH.unshift(File.expand_path("../vendor/gems/bundler-checksum/lib", __dir__))

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Baodong 编辑于

合并请求报告

加载中