Skip to content

Commit

Permalink
Update coursier to 2.0.7 for #471 (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheister committed Nov 30, 2020
1 parent 0dca0d7 commit e22e6e3
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 876 deletions.
8 changes: 5 additions & 3 deletions coursier.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,12 @@ def _coursier_fetch_impl(repository_ctx):
_download_jq(repository_ctx)

# Try running coursier once
cmd = _generate_java_jar_command(repository_ctx, repository_ctx.path("coursier"))
# Add --help because calling the default coursier command on Windows will
# hang waiting for input
cmd.append("--help")
exec_result = repository_ctx.execute(
_generate_java_jar_command(
repository_ctx,
repository_ctx.path("coursier")),
cmd,
quiet = not _is_verbose(repository_ctx))
if exec_result.return_code != 0:
fail("Unable to run coursier: " + exec_result.stderr)
Expand Down
4 changes: 2 additions & 2 deletions private/versions.bzl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
_COURSIER_CLI_VERSION = "v2.0.0-RC5-3"
_COURSIER_CLI_VERSION = "v2.0.7"

COURSIER_CLI_HTTP_FILE_NAME = ("coursier_cli_" + _COURSIER_CLI_VERSION).replace(".", "_").replace("-", "_")
COURSIER_CLI_GITHUB_ASSET_URL = "https://github.com/coursier/coursier/releases/download/{COURSIER_CLI_VERSION}/coursier.jar".format(COURSIER_CLI_VERSION = _COURSIER_CLI_VERSION)

# Run 'bazel run //:mirror_coursier' to upload a copy of the jar to the Bazel mirror.
COURSIER_CLI_BAZEL_MIRROR_URL = "https://mirror.bazel.build/coursier_cli/" + COURSIER_CLI_HTTP_FILE_NAME + ".jar"
COURSIER_CLI_SHA256 = "6598d9277705ad8369a4f9c64217fbc31c19234f2cbcca9b1e5c4300a3abb317"
COURSIER_CLI_SHA256 = "babba8a144533f041a4de791d32de00552e31fa56231f241560a2ce6a7a72702"

JQ_VERSIONS = {
"linux": struct(
Expand Down
Loading

0 comments on commit e22e6e3

Please sign in to comment.