Skip to content

Commit

Permalink
Merge pull request #359 from fejta/mod
Browse files Browse the repository at this point in the history
Use go modules instead of dep for dependency management
  • Loading branch information
k8s-ci-robot committed Jan 17, 2019
2 parents 68f28a7 + c952ade commit 24d1131
Show file tree
Hide file tree
Showing 437 changed files with 17,781 additions and 167,241 deletions.
28 changes: 23 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
load("@io_kubernetes_build//defs:run_in_workspace.bzl", "workspace_binary")

workspace_binary(
name = "dep",
cmd = "//vendor/github.com/golang/dep/cmd/dep",
name = "go",
cmd = "@go_sdk//:bin/go",
)

workspace_binary(
name = "update-minor",
args = [
"get",
"-u",
],
cmd = "@go_sdk//:bin/go",
)

workspace_binary(
name = "update-patch",
args = [
"get",
"-u=patch",
],
cmd = "@go_sdk//:bin/go",
)

workspace_binary(
name = "golint",
cmd = "//vendor/github.com/golang/lint/golint",
cmd = "@com_github_golang_lint//golint",
)

load("@bazel_gazelle//:def.bzl", "gazelle")
Expand All @@ -30,7 +48,7 @@ gazelle(

workspace_binary(
name = "kazel",
cmd = "//vendor/k8s.io/repo-infra/kazel",
cmd = "@io_kubernetes_build//kazel",
)

workspace_binary(
Expand All @@ -39,7 +57,7 @@ workspace_binary(
"--dry-run",
"--print-diff",
],
cmd = "//vendor/k8s.io/repo-infra/kazel",
cmd = "@io_kubernetes_build//kazel",
)

workspace_binary(
Expand Down
Loading

0 comments on commit 24d1131

Please sign in to comment.