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

`--version` argument in `kup install` doesn't disambiguate between paths and branch names

Đang mở
#138 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Start at the kup install argument parsing and version-resolution flow, then trace how --version values are classified as branch names or local paths. Reproduce the collision described with a matching branch and directory, and define completion as a warning plus an explicit way for users to choose the intended interpretation.

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

Mô tả

When a user runs kup install ... --version ..., the --version argument can be either a branch name or a path. If there is both a branch and a local directory with the same name, kup interprets it as a path by default. This might lead to a user accidentally installing the wrong version without realizing.

For example, say that a user is in their local clone of the kontrol repo, and runs kup install kontrol --version feature, with the intention of installing the current version of the feature branch from the external repo. However, they forgot that they had a feature directory inside their local kontrol clone where they checked out feature (for example, with git worktree add feature) and made local changes that they didn't push to the external repo. kup install kontrol --version feature will actually interpret feature as the path to the local feature directory, rather than the name of the external feature branch. As a result, the version that is installed will be different than the one the user expects without them realizing.

Ideally, I think that if the --version argument can be interpreted both ways, it might be a good idea to warn the user and provide a way to allow them to disambiguate between the two, so that this mistake can be avoided.

Ngôn ngữ chính
Python
Star
10
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 runtimeverification/kup

Tất cả issue của runtimeverification/kup

Issue tương tự

Thêm issue về Python

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.