Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jbang-example.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!
//DEPS com.github:copilot-sdk-java:0.3.0-java.2
///usr/bin/env jbang "$0" "$@" ; exit $?
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//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/

Copilot uses AI. Check for mistakes.
//DEPS com.github:copilot-sdk-java:0.3.1-java.1-SNAPSHOT
import com.github.copilot.sdk.CopilotClient;
import com.github.copilot.sdk.generated.AssistantMessageEvent;
import com.github.copilot.sdk.generated.SessionUsageInfoEvent;
Expand Down
Loading