make `xtask dist` a bit smarter

Đang mở
#433 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/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ệ
rust
Lĩnh vực
build-system

Hướng nghiên cứu

Start by locating the xtask dist implementation and the codegen step that produces P4 artifacts under target/proto/opt/oxide/dendrite/sidecar. Read how --features and --format affect the distribution command, then determine what prerequisite work it can detect and run. Done means cargo xtask dist --features tofino_asic --format global handles missing generated artifacts instead of failing with “Was codegen run?”.

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

Mô tả

This could be better

ry@rydev:~/src/dendrite$ cargo xtask dist --features tofino_asic --format global
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s
     Running `target/debug/xtask dist --features tofino_asic --format global`
failed: No p4 artifacts found at target/proto/opt/oxide/dendrite/sidecar.  Was codegen run?

in the sense that the command could detect what needs to be done and just do it.

Ngôn ngữ chính
Rust
Star
22
Fork
4
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
6

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 oxidecomputer/dendrite

Tất cả issue của oxidecomputer/dendrite

Issue tương tự

Thêm issue về Rust

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.