Skip to content
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

Hab pkg size issue removed cache and bundler folder #1864

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function Invoke-Install {
function Invoke-After {
# We don't need the cache of downloaded .gem files ...
Remove-Item $pkg_prefix/vendor/cache -Recurse -Force
Remove-Item $pkg_prefix/vendor/bundler -Recurse -Force
# We don't need the gem docs.
Remove-Item $pkg_prefix/vendor/doc -Recurse -Force
# We don't need to ship the test suites for every gem dependency,
Expand Down
3 changes: 3 additions & 0 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ do_install() {
gem install ohai-*.gem --no-document
set_runtime_env "GEM_PATH" "${pkg_prefix}/vendor"
wrap_ruby_bin
rm -rf $GEM_PATH/bundler
rm -rf $GEM_PATH/cache
rm -rf $GEM_PATH/doc
}
wrap_ruby_bin() {
local bin="$pkg_prefix/bin/$pkg_name"
Expand Down
Loading