Original PR: https://github.com/apple/pkl/pull/1126 Author: @stackoverflow Created: 7/16/2025 Status: ✅ Merged Merged: 7/18/2025 Merged by: @stackoverflow
Base: main ← Head: fix-shebangs
main
fix-shebangs
d814117
7fd5ca9
3a8a9c9
f9b76d5
6 files changed (+20 additions, -4 deletions)
➕ pkl-core/src/test/files/LanguageSnippetTests/input/errors/shebang.pkl (+2 -0) ➕ pkl-core/src/test/files/LanguageSnippetTests/input/syntax/shebang.pkl (+2 -0) ➕ pkl-core/src/test/files/LanguageSnippetTests/output/errors/shebang.err (+6 -0) ➕ pkl-core/src/test/files/LanguageSnippetTests/output/syntax/shebang.pcf (+1 -0) 📝 pkl-parser/src/main/java/org/pkl/parser/Parser.java (+6 -4) 📝 pkl-parser/src/main/resources/org/pkl/parser/errorMessages.properties (+3 -0)
pkl-core/src/test/files/LanguageSnippetTests/input/errors/shebang.pkl
pkl-core/src/test/files/LanguageSnippetTests/input/syntax/shebang.pkl
pkl-core/src/test/files/LanguageSnippetTests/output/errors/shebang.err
pkl-core/src/test/files/LanguageSnippetTests/output/syntax/shebang.pcf
pkl-parser/src/main/java/org/pkl/parser/Parser.java
pkl-parser/src/main/resources/org/pkl/parser/errorMessages.properties
Fixes #1125
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1126
Author: @stackoverflow
Created: 7/16/2025
Status: ✅ Merged
Merged: 7/18/2025
Merged by: @stackoverflow
Base:
main← Head:fix-shebangs📝 Commits (4)
d814117Only allow shebangs in the beginning of a module7fd5ca9Only allow shebangs at the very beginning of a file3a8a9c9Revert previous commitf9b76d5Fix tests📊 Changes
6 files changed (+20 additions, -4 deletions)
View changed files
➕
pkl-core/src/test/files/LanguageSnippetTests/input/errors/shebang.pkl(+2 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/input/syntax/shebang.pkl(+2 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/errors/shebang.err(+6 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/syntax/shebang.pcf(+1 -0)📝
pkl-parser/src/main/java/org/pkl/parser/Parser.java(+6 -4)📝
pkl-parser/src/main/resources/org/pkl/parser/errorMessages.properties(+3 -0)📄 Description
Fixes #1125
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.