Skip to content

fix: don't depend on JAVA_HOME#341

Merged
pcj merged 1 commit into
stackb:masterfrom
alexeagle:java_home
Feb 17, 2024
Merged

fix: don't depend on JAVA_HOME#341
pcj merged 1 commit into
stackb:masterfrom
alexeagle:java_home

Conversation

@alexeagle
Copy link
Copy Markdown

On my Mac, I don't have a Java installation, so I can't run Coursier in a repo rule. This change fixes it.
Error looks like the following:

ERROR: An error occurred during the fetch of repository 'maven':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_alexeagle/ae0af0834eef79816f461fa88cebe300/external/rules_jvm_external/coursier.bzl", line 795, column 13, in _coursier_fe
common --enable_platform_specific_config
tch_impl
		fail("Unable to run coursier: " + hasher_exec_result.stderr)
Error in fail: Unable to run coursier: The operation couldn’t be completed. Unable to locate a Java Runtime.

On my Mac, I don't have a Java installation, so I can't run Coursier in a repo rule.
Error looks like the following:

```
ERROR: An error occurred during the fetch of repository 'maven':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_alexeagle/ae0af0834eef79816f461fa88cebe300/external/rules_jvm_external/coursier.bzl", line 795, column 13, in _coursier_fe
common --enable_platform_specific_config
tch_impl
		fail("Unable to run coursier: " + hasher_exec_result.stderr)
Error in fail: Unable to run coursier: The operation couldn’t be completed. Unable to locate a Java Runtime.
```
@pcj pcj merged commit 8296592 into stackb:master Feb 17, 2024
@alexeagle alexeagle deleted the java_home branch February 19, 2024 17:58
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