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

Resolve corpus compiler paths before changing the working directory

Đang mở Phù hợp với người mới
#808 0 bình luận 0 reaction 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu trong tools/check_wave_corpus.py và chạy bản tái hiện Linux được cung cấp để quan sát lỗi đường dẫn sau khi thay đổi thư mục làm việc. Truy vết việc chọn WAVEC và xác minh bản sửa từ bên ngoài repository, bao gồm cả các đường dẫn tương đối với caller có chứa khoảng trắng. Hoàn tất khi các đường dẫn tường minh vẫn được chọn mà không chuyển sang một executable trên PATH có cùng tên.

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

Mô tả

bug good first issue needs testing

Problem

An explicit relative compiler path is validated in the caller directory but returned unchanged. Compilation later runs with cwd=ROOT; a valid ./fake-wavec becomes a bare fake-wavec executable name and cannot be launched. A compiler with that name on PATH could also be selected instead.

Starting points: tools/check_wave_corpus.py.

Reproduction

Executed on Linux amd64 with Python 3.14.7. The affected files at local ade878134519b0f957ca28a23c6f9cd98e43dff3 are byte-identical to canonical master 286dad9c8fcb0616f7c719c72cbf453a7d9925fd.

Run from the repository root:

python3 -B - <<'PYREPRO'
import os, tempfile
from pathlib import Path
from unittest.mock import patch
from tools import check_wave_corpus as c
with tempfile.TemporaryDirectory() as tmp:
    p = Path(tmp) / 'fake-wavec'
    p.write_text('#!/bin/sh\nexit 0\n')
    p.chmod(0o700)
    os.chdir(tmp)
    with patch.object(c, 'corpus_files', return_value=[c.ROOT / 'examples/std/net_tcp.wave']):
        c.main(['--wavec', './fake-wavec'])
PYREPRO

Observed: FileNotFoundError: [Errno 2] No such file or directory: fake-wavec. The provided executable exists and is executable.

Scope

Easy: make successfully resolved executable paths stable across the child working-directory change, including the WAVEC override. Keep explicit-selection precedence.

Completion criteria

  • A caller-relative executable runs from outside the repository.
  • Explicit paths cannot silently fall back to a same-named PATH executable.
  • Cover relative paths containing spaces and WAVEC selection.
Ngôn ngữ chính
Rust
Star
56
Fork
21
Merge trung bình
2 giờ 51 phút
Pull request đã merge (30 ngày)
53

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

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 wavefnd/Wave

Tất cả issue của wavefnd/Wave

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.