rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Can't use rules from head without bazel installed.

Open BalestraPatrick opened this issue 2 years ago • 3 comments

Hi!

It seems like archive_repository_implementation is invoking bazel directly: https://github.com/bazelbuild/rules_kotlin/blob/26c811765f8ed42d4538a1963dffb9dc2d12f3b8/src/main/starlark/release_archive/repository.bzl#L80

This causes issues when running on a machine with only bazelisk on the PATH because bazel doesn't exist. Would it be possible to improve this in some way?

BalestraPatrick avatar Jan 17 '22 10:01 BalestraPatrick

I presume you are not running this from a release?

The work around is to run:

bazelisk build //:rules_kotlin_release
mkdir /tmp/rules_kotlin_release && tar -xvf bazel-bin/rules_kotlin_release.gz -C /tmp/rules_kotlin_release

And add local_repository(name="rules_kotlin", path="/tmp/rules_kotlin_release") to the consuming workspace.

restingbull avatar Jan 27 '22 22:01 restingbull

We are actually using https://github.com/bazelbuild/rules_kotlin/releases/download/v1.5.0-beta-4/rules_kotlin_release.tgz

BalestraPatrick avatar Jan 31 '22 12:01 BalestraPatrick

Workspace file, please?

restingbull avatar Feb 04 '22 19:02 restingbull