Investigate remaining uses of shlex

オープン
#6,033 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@davecheney がすでに取り組んでいます。

2026年10月25日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
Go
スター
17.8k
フォーク
1.1k
平均マージ
1日 4時間
マージ済み PR(30日)
380

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tinygo-org/tinygo のほかの issue

tinygo-org/tinygo の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。