Skip to content
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

Stop using org.pkl-lang:pkl-cli-java, use org.pkl-lang:pkl-tools instead #14

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

KushalP
Copy link
Collaborator

@KushalP KushalP commented Jul 16, 2024

org.pkl-lang:pkl-tools already bundles the same Pkl CLI Main class, so the additional org.pkl-lang:pkl-cli-java is unnecessary.

pkl-cli-java shell front matter

The pkl-cli-java jar is prefixed with a small amount of shell front matter to allow it to both be used as a dependency and as an executable if the correct execution bit is set.

This can possibly cause problems with some tooling, so removing it is preferred. The front matter:

❯ curl -L -o jpkl 'https://repo1.maven.org/maven2/org/pkl-lang/pkl-cli-java/0.26.1/pkl-cli-java-0.26.1.jar'

❯ head -n 2 jpkl
 #!/bin/sh
 exec java  -jar $0 "$@"

See: https://pkl-lang.org/main/current/pkl-cli/index.html#java-executable

…instead

`org.pkl-lang:pkl-tools` already bundles the same Pkl CLI `Main`
class, so the additional `org.pkl-lang:pkl-cli-java` is unnecessary.

`pkl-cli-java` shell front matter
---------------------------------

The `pkl-cli-java` jar is prefixed with a small amount of shell front
matter to allow it to both be used as a dependency and as an
executable if the correct execution bit is set.

This can possibly cause problems with some tooling, so removing it is
preferred. The front matter:

```
❯ curl -L -o jpkl 'https://repo1.maven.org/maven2/org/pkl-lang/pkl-cli-java/0.26.1/pkl-cli-java-0.26.1.jar'

❯ head -n 2 jpkl
 #!/bin/sh
 exec java  -jar $0 "$@"
```

See: https://pkl-lang.org/main/current/pkl-cli/index.html#java-executable
@KushalP KushalP merged commit 3356552 into apple:main Jul 16, 2024
4 checks passed
@KushalP KushalP deleted the stop-using-pkl-cli-java-use-tools branch July 16, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants