Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Block the Ubuntu git package after switching to the prebuild

Đang mở
#7,779 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, git, ubuntu
Lĩnh vực
infrastructure

Hướng nghiên cứu

Start with how install-tool git installs the prebuild and how install-apt handles packages, since the issue names both. The proposal needs a virtual containerbase-git deb providing git (= version) and an apt pin at /etc/apt/preferences.d/containerbase-git for git and git-man. Done means a direct apt install git fails in a custom image while packages depending on git still resolve to the prebuild. Confirm the design with the maintainer before writing code.

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

Mô tả

breaking

What would you like containerbase to do?

Block Ubuntu's git package once git comes from our prebuild, so apt doesn't install a second git into /usr/bin.

Background

Nothing in containerbase installs git with apt except install-tool git itself, but custom images (install-apt git), Renovate post-upgrade commands and apt packages with a hard dependency on git (e.g. Ubuntu's git-lfs, git-man) would pull Ubuntu's git.

Proposal

  • A virtual package: after installing the prebuild, register a minimal deb built with dpkg-deb (e.g. containerbase-git) with Provides: git (= 1:<version>), so packages depending on git, including versioned dependencies, are satisfied by our build. install-tool git updates it with each install.
  • An apt pin in /etc/apt/preferences.d/containerbase-git with Package: git git-man, Pin: release *, Pin-Priority: -1, so a direct apt install git fails instead of silently adding Ubuntu's git.
  • Document both for custom images.

Drafted by Claude Opus 5.5 (Claude Code) for @viceice.

Ngôn ngữ chính
TypeScript
Star
58
Fork
65
Merge trung bình
8 giờ
Pull request đã merge (30 ngày)
438

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.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 containerbase/base

Tất cả issue của containerbase/base

Issue tương tự

Thêm issue về TypeScript

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.