From ef72235445f02817d75b9a60c7ebc2a181dbfbda Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Mon, 26 Aug 2024 15:12:02 +0200 Subject: [PATCH] chore: Update release artifacts 1. Add jvm main class to use as fallback for coursier if platform is not supported 2. Fix fish completions to not show errors, otherwise they would show up every time `bloop autocomplete` is run outside a directory with .bloop available. --- etc/bloop-coursier.json | 7 ++++--- etc/fish-completions | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/etc/bloop-coursier.json b/etc/bloop-coursier.json index 2bfd9877c7..9d6c05abe7 100644 --- a/etc/bloop-coursier.json +++ b/etc/bloop-coursier.json @@ -8,6 +8,7 @@ "launcherType": "graalvm-native-image", "prebuilt": "$PREBUILT", "dependencies": [ - "ch.epfl.scala:bloop-cli_2.13:$VERSION" - ] -} \ No newline at end of file + "ch.epfl.scala::bloop-cli:$VERSION" + ], + "mainClass": "bloop.cli.Bloop" +} diff --git a/etc/fish-completions b/etc/fish-completions index abde5605ce..f92459ffce 100644 --- a/etc/fish-completions +++ b/etc/fish-completions @@ -15,11 +15,11 @@ function _boolean end function _reporters - bloop autocomplete --format fish --mode reporters + bloop autocomplete --format fish --mode reporters 2> /dev/null end function _protocols - bloop autocomplete --format fish --mode protocols + bloop autocomplete --format fish --mode protocols 2> /dev/null end function _testsfqcn @@ -27,7 +27,7 @@ function _testsfqcn set -e cmd[1] set -l project $cmd[2] if test -n "$project" - bloop autocomplete --format fish --mode testsfqcn --project $project + bloop autocomplete --format fish --mode testsfqcn --project $project 2> /dev/null end end @@ -35,7 +35,7 @@ function _mainsfqcn set -l cmd (commandline -poc) set -e cmd[1] set -l project $cmd[2] - bloop autocomplete --format fish --mode mainsfqcn --project $project + bloop autocomplete --format fish --mode mainsfqcn --project $project 2> /dev/null end function __assert_args_count -a count @@ -73,7 +73,7 @@ function __fish_seen_subcommand_from_project_commands end function _flags_for_command -a cmd - bloop autocomplete --format fish --mode flags --command $cmd + bloop autocomplete --format fish --mode flags --command $cmd 2> /dev/null end function _is_project_command -a cmd