Closed TomTom876 closed 2 years ago
The instructions need to be updated -- the openapi_tools_generator_bazel_repositories macro takes a SHA256 hash, which you need to provide if you are specifying a different CLI version than the default, see https://github.com/OpenAPITools/openapi-generator-bazel/blob/master/internal/openapi_generator.bzl#L5.
Try updating your code to
openapi_tools_generator_bazel_repositories( openapi_generator_cli_version = "5.1.0", sha256="f29d9d715a0d67cf1457d918ae7ed33f02d7fb2730c018d246a8d4a93d5ba7e1" )
Thanks @ethanrcohen, I finally got it passed the checksum issue, with a minor change to your suggestion on the sha256 value:
openapi_tools_generator_bazel_repositories( openapi_generator_cli_version = "5.1.0", sha256="62f9842f0fcd91e4afeafc33f19a7af41f2927c7472c601310cedfc72ff1bb19" )
I assume my tar.gz file is correct, so does the cli
In WORKSPACE, I have:
In BUILD.bazel, I have:
When doing bazel build, I got this error. Thanks for help