Commit Graph

1571 Commits

Author SHA1 Message Date
Adam Liddell f64d4f4d1a Update grpclib and use internal pip-compile from rules_python 2022-11-22 21:57:55 +00:00
Adam Liddell 8c3d6e8907 Update protoc-gen-validate 2022-11-22 21:51:54 +00:00
Adam Liddell fda348e774 Update rules_nodejs 2022-11-22 21:49:42 +00:00
Adam Liddell b6118747de Update rules_jvm_external 2022-11-22 21:48:56 +00:00
Adam Liddell 762832e254 Update rules_go and grpc-gateway 2022-11-22 21:47:36 +00:00
Adam Liddell 933b61183e Update rules_swift 2022-11-22 21:40:49 +00:00
Adam Liddell cc3b344fd8 Update rust and scala rules 2022-11-22 21:39:48 +00:00
Adam Liddell 029d6888d6 Source upb for C from gRPC deps, to prevent version skew 2022-11-22 21:31:53 +00:00
Adam Liddell efc9b1b5ed Update Buf to 1.9.0 2022-11-22 21:24:58 +00:00
Adam Liddell cf767d011b Fix grpc-web windows hash 2022-11-22 21:22:03 +00:00
Adam Liddell f9129c9704 Bump core deps 2022-11-22 21:19:03 +00:00
Adam Liddell 03087e8bd3 Update protobuf and grpc 2022-11-22 21:14:48 +00:00
Adam Liddell 6d0bcc4738 Bump JS deps 2022-11-22 21:02:23 +00:00
Adam Liddell 480a8d7c1f
Merge pull request #222 from nollbit/jm/m1-support
Add support M1 Mac for grpc-web
2022-11-22 20:47:54 +00:00
Red Daly b9e6b2922d Allow greater customization of environment variables by plugins.
* Add an "env" property to ProtoPluginInfo that contains an environment variable
  dictionary.

* Add a corresponding "env" attribute to the the proto_plugin rule.

* For cases where environment variables must specified based on ctx, as
  described in https://github.com/bazelbuild/bazel/issues/15470 and
  https://github.com/aspect-build/rules_js/issues/397, modify proto_compile_impl
  and proto_compile to accept a base_env dictionary argument. Example usage is
  below:

```starlark

def _ts_proto_compile_impl(ctx):
    """
    Implementation function for ts_proto_compile.

    Args:
        ctx: The Bazel rule execution context object.

    Returns:
        Providers:
            - ProtoCompileInfo
            - DefaultInfo

    """
    base_env = {
        # Make up for https://github.com/bazelbuild/bazel/issues/15470.
        "BAZEL_BINDIR": ctx.bin_dir.path,
    }
    return proto_compile_impl(ctx, base_env = base_env)

ts_proto_compile = rule(
    implementation = _ts_proto_compile_impl,
    attrs = dict(
        proto_compile_attrs,
        _plugins = attr.label_list(
            providers = [ProtoPluginInfo],
            default = [
                Label("//bazel/web/targets:ts_proto_compile"),
            ],
            doc = "List of protoc plugins to apply",
        ),
    ),
    toolchains = [
        str(Label("@rules_proto_grpc//protobuf:toolchain_type")),
    ],
)
```

```starlark
load("@npm//:ts-proto/package_json.bzl", _ts_proto_bin_factories = "bin")
load("@rules_proto_grpc//:defs.bzl", "proto_plugin")

_ts_proto_bin_factories.protoc_gen_ts_proto_binary(
    name = "protoc-gen-ts-proto",
)

proto_plugin(
    name = "ts_proto_compile",
    outputs = ["{protopath}.ts"],
    protoc_plugin_name = "ts_proto",
    tool = "//bazel/web/targets:protoc-gen-ts-proto",
    use_built_in_shell_environment = False,
    visibility = ["//visibility:public"],
)
```
2022-11-19 13:41:24 -08:00
Johan Mjönes af22e76a8b Use arm64 instead of aarch64 2022-10-20 13:14:39 +02:00
Johan Mjönes a0aff8f7bf Upgrade grpc-web and grpc-tools to versions with m1 support 2022-10-20 12:59:45 +02:00
Johan Mjönes f25b954038 Fix broken imports 2022-10-20 12:59:29 +02:00
Johan Mjönes c374635d6a Fix broken imports 2022-10-20 12:59:11 +02:00
Johan Mjönes 92cae251c0 Update grpc-web to 1.4.1 and add darwin-aarch64 support 2022-10-20 10:52:21 +02:00
Adam Liddell 58f568397f Fix dep override example for protobuf 2022-08-31 15:49:59 +01:00
Adam Liddell 564a7fef7d Update version in readme 2022-08-24 17:54:11 +01:00
Adam Liddell c1f2c3f508 Merge branch 'dev' 2022-08-24 17:51:32 +01:00
Adam Liddell e6321bc681 Add missing linebreak 2022-08-24 17:50:11 +01:00
Adam Liddell 8ffd0c03dc
Merge pull request #178 from rules-proto-grpc/dev
Next Release 4.2.0
2022-08-24 16:49:16 +00:00
Adam Liddell 0531986b32 Mark typescript as broken 2022-08-24 17:20:25 +01:00
Adam Liddell f941fb61e6 Add readme note 2022-08-24 17:11:53 +01:00
Adam Liddell 753d38400f Remove broken typescript test workspace and add note about continued problems here 2022-08-24 17:11:23 +01:00
Adam Liddell 0dece6bc3f Add changelog notes 2022-08-24 16:55:28 +01:00
Adam Liddell 88305395cf Update buf to v1.7.0 and swap flags based on #210 2022-08-24 16:50:01 +01:00
Adam Liddell efa481d256 Update typescript test workspace 2022-08-24 16:44:32 +01:00
Adam Liddell e978f997ef Remove disabled tests from buildkite presubmit 2022-08-24 16:42:57 +01:00
Adam Liddell 01a26a84a3 Disable broken C#/F# client to Rust server tests 2022-08-24 16:33:06 +01:00
Adam Liddell 110ab6f385 Move loading of swift rules earlier in WORKSPACE
This prevents loading an old version of build_bazel_apple_support
2022-08-24 16:19:22 +01:00
Adam Liddell 406b13653c Remove unnecessary F# match expressions and option wrapping 2022-08-24 16:11:34 +01:00
Adam Liddell df5acb850e Revert deps for grpc-fsharp 2022-08-24 15:18:44 +01:00
Adam Liddell ab92501681 Update grpc-fsharp to support net6.0 2022-08-24 15:12:07 +01:00
Adam Liddell 69b63509e1 Simplify grpc-fsharp rules 2022-08-24 14:59:22 +01:00
Adam Liddell bb8c490899 Rework F# routeguide to match C# 2022-08-24 14:51:05 +01:00
Adam Liddell 2f54c20778 Rework C# routeguide to use new grpc packages 2022-08-24 14:13:21 +01:00
Adam Liddell 4f666cfcbf Update C# and F# deps to use Grpc.Net.Common 2022-08-23 23:48:50 +01:00
Adam Liddell be4f9a5109
Merge pull request #174 from mjs-rokt/master
Update rules_dotnet to SDK 6.0.101
2022-08-23 22:22:33 +00:00
Adam Liddell 37bf8345e2
Merge branch 'dev' into master 2022-08-23 22:20:44 +00:00
Adam Liddell 20fe8d869c
Merge pull request #213 from thefallentree/patch-1
make sure destination directory exists when copying output
2022-08-23 22:12:52 +00:00
Adam Liddell b66ebdb1fa Add test workspace for output_directory file copying #213 2022-08-23 23:08:23 +01:00
Adam Liddell a7030e0a67 Bump rules_scala 2022-08-23 22:40:01 +01:00
Adam Liddell d3ccb81512 Fix JS routeguide tests 2022-08-23 22:34:59 +01:00
Adam Liddell 273e17db45 Rollback gazelle version 2022-08-23 21:58:14 +01:00
Adam Liddell 3075c6bf54 Pickup super new releases of grpc-gateway and rules_swift 2022-08-23 21:47:31 +01:00
Adam Liddell 946a8da896 Fix old versions of rules_go and gazelle being pulled via grpc deps
Related to afa8ac1ba0
2022-08-23 21:42:30 +01:00