Skip to content

Commit

Permalink
move client to the root of the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
apesternikov committed Jun 14, 2024
1 parent 7cb6fce commit 7c0d44a
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 242 deletions.
2 changes: 1 addition & 1 deletion testing/it_sidecar/client/BUILD → client/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ go_library(
data = [
":noop.setup",
],
importpath = "github.com/fasterci/rules_gitops/testing/it_sidecar/client",
importpath = "github.com/fasterci/rules_gitops/client",
visibility = ["//visibility:public"],
)
3 changes: 3 additions & 0 deletions client/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/fasterci/rules_gitops/client

go 1.20
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go_test(
srcs = ["sidecar_client_test.go"],
args = [
"-setup",
"$(location //testing/it_sidecar/client:noop.setup)",
"$(location //client:noop.setup)",
],
data = [
"//testing/it_sidecar/client:noop.setup",
"//client:noop.setup",
],
rundir = ".",
deps = ["//testing/it_sidecar/client:go_default_library"],
deps = ["//client:go_default_library"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ governing permissions and limitations under the License.
package test_callback

import (
"github.com/fasterci/rules_gitops/testing/it_sidecar/client"
"testing"

client "github.com/fasterci/rules_gitops/client"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["sidecar_client_test_no_callback.go"],
importpath = "github.com/fasterci/rules_gitops/testing/it_sidecar/client/test_no_callback",
importpath = "github.com/fasterci/rules_gitops/client/test_no_callback",
visibility = ["//visibility:public"],
deps = ["//testing/it_sidecar/client:go_default_library"],
deps = ["//client:go_default_library"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ governing permissions and limitations under the License.
package test_no_callback

import (
"github.com/fasterci/rules_gitops/testing/it_sidecar/client"
"testing"

client "github.com/fasterci/rules_gitops/client"
)

var (
setup client.K8STestSetup
setup client.K8STestSetup
)

// The setup should run without error since ReadyCallback is optional
Expand Down
Loading

0 comments on commit 7c0d44a

Please sign in to comment.