Remove the bin/bundle binstub (Heroku warns it can break Bundler on deploy)

Đang mở Phù hợp với người mới
#7,325 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
82/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, github-actions, rails, ruby
Lĩnh vực
devops

Hướng nghiên cứu

Tệp cần xóa là bin/bundle; bắt đầu bằng git grep -n 'bin/bundle' để xác nhận không có gì gọi nó, sau đó xóa bằng git rm. Kiểm tra rằng bin/setup, bin/update và bin/dev vẫn khởi chạy được, và để CI chạy qua. Hoàn thành khi tệp đã biến mất, không còn tham chiếu nào và CI xanh; việc kiểm tra log Heroku diễn ra sau khi triển khai và là nhiệm vụ của maintainer.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

dependencies Difficulty: Easy Good First Issue

Every Heroku build prints this warning twice:

Your app has a bin/bundle binstub that may cause bundler to malfunction. We recommend you remove it.
When bin/bundle is present, bundle clean may remove the installed version of bundler and then your app falls back to the default bundler version that ships with Ruby, which can be a different major version than expected.
See https://github.com/heroku/heroku-buildpack-ruby/issues/1690

bin/bundle is an old Bundler-generated binstub. Nothing in the repo calls it: git grep -n 'bin/bundle' only finds the file itself and an unrelated comment about bin/bundler-audit. Our scripts, the Dockerfile and CI all run plain bundle.

Steps

  • git rm bin/bundle
  • Run git grep -n 'bin/bundle' and check that nothing still uses it (bin/bundler-audit is a different file, so leave it).
  • Locally, check that bin/setup, bin/update and bin/dev still start normally.

Acceptance

  • Every CI check is green.
  • After the next deploy, the Heroku build log no longer shows the bin/bundle warning. A maintainer will check this.

Related: #7324 (Ruby 4.0.9), which touches the same deploy setup. Either can go first.

Ngôn ngữ chính
Ruby
Star
382
Fork
547
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rubyforgood/casa

Tất cả issue của rubyforgood/casa

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.