Fix jbang-example.java shebang line and dependency version#127
Merged
brunoborges merged 1 commit intomainfrom Apr 27, 2026
Merged
Fix jbang-example.java shebang line and dependency version#127brunoborges merged 1 commit intomainfrom
brunoborges merged 1 commit intomainfrom
Conversation
The first line was a bare '!' instead of the proper JBang shebang '///usr/bin/env jbang'. Also updated the dependency version from 0.3.0-java.2 to the current 0.3.1-java.1-SNAPSHOT. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
edburns
approved these changes
Apr 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s JBang runnable example so it can be executed directly with jbang, and refreshes the example’s dependency version to match the current development version of the SDK.
Changes:
- Fix the
jbang-example.javalauncher/shebang line so the file is executable by JBang. - Update the
//DEPSversion from0.3.0-java.2to0.3.1-java.1-SNAPSHOT.
Show a summary per file
| File | Description |
|---|---|
| jbang-example.java | Makes the example runnable via JBang and updates the dependency version used by the script. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
| @@ -1,5 +1,5 @@ | |||
| ! | |||
| //DEPS com.github:copilot-sdk-java:0.3.0-java.2 | |||
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |||
There was a problem hiding this comment.
//DEPS points to a -SNAPSHOT version, but the file doesn’t declare a snapshot repository (e.g., via a //REPOS directive). On a clean machine this will typically fail to resolve since Maven Central doesn’t serve snapshots. Either switch the example back to a released version, or add the appropriate snapshot repository line so jbang jbang-example.java works out of the box.
Suggested change
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //REPOS https://s01.oss.sonatype.org/content/repositories/snapshots/ |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes
jbang-example.javaso it can be run withjbang.Changes
//DEPSfrom0.3.0-java.2to current0.3.1-java.1-SNAPSHOTTesting
Ran
jbang jbang-example.javalocally — Copilot connected successfully and answered a test prompt.