Closed msiebuhr closed 2 years ago
Found the solution in https://github.com/OpenAPITools/openapi-generator-bazel/issues/21#issuecomment-833565957:
WORKSPACE
can define the hash:
http_archive(
name = "openapi_tools_generator_bazel",
sha256 = "c6e4c253f1ae0fbe4d4ded8a719f6647273141d0dc3c0cd8bb074aa7fc3c8d1c",
urls = ["https://github.com/OpenAPITools/openapi-generator-bazel/releases/download/0.1.5/openapi-tools-generator-bazel-0.1.5.tar.gz"],
)
load("@openapi_tools_generator_bazel//:defs.bzl", "openapi_tools_generator_bazel_repositories")
# You can provide any version of the CLI that has been uploaded to Maven
openapi_tools_generator_bazel_repositories(
openapi_generator_cli_version = "5.1.0",
sha256 = "62f9842f0fcd91e4afeafc33f19a7af41f2927c7472c601310cedfc72ff1bb19", # ADD THIS LINE!
)
Building a project with openapi-generator-bazel in it currently fails for me:
I guess something has changed in the openapi-generator-cli 5.1.0...
My import of openapi-generator-bazel: