Investigate remaining uses of shlex

Đang mở
#6,033 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

@davecheney đang làm issue này rồi.

Từ ngày 25/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

PR #6022 replaced shell parsing for CGO_*FLAGS environment variables to preserve Windows path backslashes. PR #6032 extends this to -ldflags and -extldflags.

Four calls to shlex.Split remain:

  • Flash commands in main.go.
  • Emulator commands in compileopts/config.go.
  • Compiler and linker flags from #cgo directives in cgo/cgo.go.

Investigate the quoting rules required at each call site, including Windows paths and compatibility with existing target definitions. Paths substituted into flash commands after splitting are unaffected, but literal paths in command templates can lose backslashes.

Any replacements should preserve required escaping and include regression tests. The #cgo directive syntax needs separate consideration from environment variables.

Ngôn ngữ chính
Go
Star
17.8k
Fork
1.1k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
380

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 tinygo-org/tinygo

Tất cả issue của tinygo-org/tinygo

Issue tương tự

Thêm issue về Go

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.