rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

When building from head, rules do not update without a shutdown of the server.

Open restingbull opened this issue 2 years ago • 2 comments

This is due to bazel being unable to determine that changes in the local_repository directory affect the archive_repository.

restingbull avatar Nov 22 '21 14:11 restingbull

@nkoroste -- can you verify this works? It looks like it does locally.

restingbull avatar Nov 22 '21 19:11 restingbull

No, I don't think it worked, I still have to --expunge in order for changes in rules_kotlin to take effect in the client repo that uses them. Tested on latest master.

In the client repo, I pull rules_kotlin like this:

local_repository(
    name = "release_archive",
    path = "../../rules_kotlin/src/main/starlark/release_archive",
)

load("@release_archive//:repository.bzl", "archive_repository")

archive_repository(
    name = "io_bazel_rules_kotlin",
    local_path = "../../rules_kotlin",
)

Then I add a print in rules_kotlin/kotlin/internal/jvm/compile.bzl to see if it appears when I build the client repo - the changes are only reflected after --expunge

nkoroste avatar Dec 02 '21 01:12 nkoroste