Skip to content

Commit

Permalink
Shorten path to example file
Browse files Browse the repository at this point in the history
Otherwise the diff_test fails on Windows because the path is too long.
  • Loading branch information
illicitonion committed May 8, 2024
1 parent e4f609e commit 7ebae50
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")

genquery(
name = "generated_targets",
expression = "kind(java_test, deps(//src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle:gazelle))",
expression = "kind(java_test, deps(//src/test/com/example/gazelle:gazelle))",
opts = ["--output=label_kind"],
scope = ["//src/test/com/github/bazel_contrib/contrib_rules_jvm/examples/gazelle"],
scope = ["//src/test/com/example/gazelle"],
)

diff_test(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.bazel_contrib.contrib_rules_jvm.examples.gazelle;
package com.example.gazelle;

import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java_test rule //src/test/com/example/gazelle:ExampleTest

This file was deleted.

0 comments on commit 7ebae50

Please sign in to comment.