Skip to content

Commit

Permalink
Upgrade and simplify WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
Helcaraxan committed Aug 11, 2020
1 parent b3c7c06 commit 743ade3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
14 changes: 14 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build:download_all --build_runfile_links
build:download_all --noexperimental_inmemory_jdeps_files
build:download_all --noexperimental_inmemory_dotd_files
build:download_all --experimental_remote_download_outputs=all

build:disable_caches --config=download_all # This is necessary because toplevel is unsafe to set if there's no cache.
build:disable_caches --remote_http_cache=
build:disable_caches --remote_cache=
build:disable_caches --repository_cache=
build:disable_caches --disk_cache=
build:disable_caches --remote_accept_cached=false
build:disable_caches --config=disable_remote_upload

build:disable_remote_upload --remote_upload_local_results=false
22 changes: 3 additions & 19 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,38 +39,22 @@ go_proto_compiler(
)

go_proto_library(
name = "_validators_gogo",
name = "validators_gogo",
compilers = [
"@io_bazel_rules_go//proto:gogo_proto",
],
importpath = "github.com/mwitkow/go-proto-validators",
proto = ":validator_proto",
visibility = ["//:__pkg__"],
visibility = ["//visibility:public"],
)

go_proto_library(
name = "_validators_golang",
name = "validators_golang",
compilers = [
"@io_bazel_rules_go//proto:go_proto",
],
importpath = "github.com/mwitkow/go-proto-validators",
proto = ":validator_proto",
visibility = ["//:__pkg__"],
)

go_library(
name = "validators_gogo",
srcs = ["helper.go"],
embed = [":_validators_gogo"],
importpath = "github.com/mwitkow/go-proto-validators",
visibility = ["//visibility:public"],
)

go_library(
name = "validators_golang",
srcs = ["helper.go"],
embed = [":_validators_golang"],
importpath = "github.com/mwitkow/go-proto-validators",
visibility = ["//visibility:public"],
)

Expand Down
12 changes: 6 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace(name = "com_github_mwitkow_go_proto_validators")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

GO_VERSION = "1.13.14"
GO_VERSION = "1.14.7"

http_archive(
name = "bazel_skylib",
Expand All @@ -26,9 +26,9 @@ http_archive(

http_archive(
name = "com_google_protobuf",
sha256 = "e4f8bedb19a93d0dccc359a126f51158282e0b24d92e0cad9c76a9699698268d",
strip_prefix = "protobuf-3.11.2",
url = "https://github.com/protocolbuffers/protobuf/archive/v3.11.2.zip",
sha256 = "e5265d552e12c1f39c72842fa91d84941726026fa056d914ea6a25cd58d7bbf8",
strip_prefix = "protobuf-3.12.3",
url = "https://github.com/protocolbuffers/protobuf/archive/v3.12.3.zip",
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Expand All @@ -37,9 +37,9 @@ protobuf_deps()

http_archive(
name = "io_bazel_rules_go",
sha256 = "8663604808d2738dc615a2c3eb70eba54a9a982089dd09f6ffe5d0e75771bc4f",
sha256 = "0310e837aed522875791750de44408ec91046c630374990edd51827cb169f616",
urls = [
"https://github.com/bazelbuild/rules_go/releases/download/v0.23.6/rules_go-v0.23.6.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.23.7/rules_go-v0.23.7.tar.gz",
],
)

Expand Down

0 comments on commit 743ade3

Please sign in to comment.