`--version` argument in `kup install` doesn't disambiguate between paths and branch names
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của runtimeverification/kup
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
runtimeverification/kup#149 ·
-
Update `kup list` to show nicer and shorter version strings againCó thể làm lại được @juliankuners đã nhận 427 ngày trước và không có pull request nào đang mở. Đang mở
runtimeverification/kup#137 · 1 bình luận · 1 người được giao ·
-
Add more Nix versions to test CI workflowCó thể làm lại được @juliankuners đã nhận 427 ngày trước và không có pull request nào đang mở. Đang mở
runtimeverification/kup#136 · 1 người được giao ·
-
Kup fails to uninstall nix profile packages by index on new nix and nix manifest versionsCó thể làm lại được @juliankuners đã nhận 427 ngày trước và không có pull request nào đang mở. Đang mở
runtimeverification/kup#135 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
runtimeverification/kup#121 · 1 bình luận ·
Tất cả issue của runtimeverification/kup
Issue tương tự
-
repo-audit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
scverse/repo-health#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
/context/prime scope override double-prefixes an entity-ref project and drops its scoped memoriesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
phasespace-labs/palinode#232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
collective/icalendar#1858 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
lfx-mcp cannot supply global variables: LangflowClient drops X-LANGFLOW-GLOBAL-VAR-* from envĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
langflow-ai/langflow#15496 ·
Maintainer thường phản hồi trong vòng 1 ngày