-
Notifications
You must be signed in to change notification settings - Fork 0
feat: multi-file desugar と router catch-all を追加 #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f8f81fa
feat(router): 末尾セグメント *name の catch-all ルートを追加
redpeacock78 7da29dd
feat(dsl): hawk-libs desugar を @include 再帰追跡 + dist/ ツリー出力に変更
redpeacock78 f4d4488
feat(cli): desugar 生成物を dist/ に永続化 (一時ファイル削除を廃止)
redpeacock78 73e6a7a
fix(hawk-libs): desugar のPRレビュー指摘を修正
redpeacock78 57899f8
fix(hawk-libs): desugar 出力が source にエイリアスする問題を修正
redpeacock78 e197ba4
fix(hawk-libs): desugar 出力の scratch/mv 化とパス物理正規化
redpeacock78 9ea4a00
fix(hawk-libs): desugar の publish 順序・entry 循環・symlink source を修正
redpeacock78 d8dedff
fix(hawk-libs): @include パス正規化と closure 一括 publish
redpeacock78 fe177c0
fix(hawk-libs): desugar 出力先の保護と include 解決の厳密化
redpeacock78 e3f3e31
fix(hawk-libs): publish キューの配列化と別名 include の拒否
redpeacock78 a722a0b
fix(hawk-libs): 空白入り include パスの拒否と marker の事前検証
redpeacock78 2206ba4
test(desugar): alias_include 失敗時に何も publish されないことを検証
redpeacock78 a48f18a
fix(hawk-libs): marker の事前検証強化と scratch cleanup の quote 安全化
redpeacock78 620aa12
fix(hawk-libs): marker のrel単位記録・glob展開停止・rootテスト対応
redpeacock78 eb968d3
fix(hawk-libs): marker 予約名とプロジェクト内絶対パス include の拒否
redpeacock78 dec66f3
fix(hawk-libs): marker読込検証・grep引数保護・symlink解決の強化
redpeacock78 d44bdcd
fix(hawk-libs): プロジェクト内への hard link 絶対パス include を拒否
redpeacock78 cfd53fc
fix(hawk-libs): closure確定後のhard link照合・marker src_root記録・symlink dist検証
redpeacock78 5c5de88
fix(hawk-libs): .hawk-dist 配下の rel も予約名として拒否
redpeacock78 7e52112
fix(cli): check/emit を隔離した一時 dist に出力する
redpeacock78 6f40968
fix: emit 出力と dist 親を安全化
redpeacock78 238fb54
fix: emit の Bash 3.2 互換性を戻す
redpeacock78 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,3 +29,5 @@ libtest_gawk_import.a | |
| .code-review-graph/ | ||
|
|
||
| docs/superpowers/ | ||
|
|
||
| dist/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
hawk emitis used on a multi-file app,desugarrewrites local includes to paths under this temporaryHAWK_DIST, but the EXIT trap deletes that directory immediately after only the entry file is printed. For example,hawk emit main.awk > out.awkwheremain.awkincludesx.awkproduces anout.awkcontaining@include "/tmp/hawk-emit.../x.awk", and running it later fails because the helper was removed; emit should either output a self-contained closure or keep/rewrite dependencies to stable paths.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応しました。emit は隔離 dist 内のローカル
@includeを再帰的にインライン展開(重複 include は gawk の dedup と同じく1回だけ)し、外部 include はそのまま残す self-contained な出力にしています。一時 dist の削除後も出力単独で実行できます。テストemit_multifile_self_contained(2ファイル構成の emit 出力に一時パスの@includeが残らず、gawk で実行できること)を追加しています。