Skip to content

Commit

Permalink
deps: update oapi-codegen to v2
Browse files Browse the repository at this point in the history
The oapi-codegen libraries went through a reorganization; the
repositories for the oapi-codegen build tool was separated from the
runtime libraries.
In our go.mod / go_deps.bzl, oapi-codegen build tool no longer shows up.
Instead, we explicitly need to require it, in a new macro rules_openapi_dependencies().

Aside; fix `cfg = "exec"` for the oapi-codegen buildtool so that this
tool is built for the environment of the builder, not the target
platform.
  • Loading branch information
matzf committed Nov 2, 2023
1 parent a0a89d4 commit e02888f
Show file tree
Hide file tree
Showing 36 changed files with 1,729 additions and 905 deletions.
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ nodejs_register_toolchains(
node_version = DEFAULT_NODE_VERSION,
)

load("//rules_openapi:deps.bzl", "rules_openapi_dependencies")

rules_openapi_dependencies()

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
Expand Down
3 changes: 1 addition & 2 deletions control/mgmtapi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ go_library(
"//private/mgmtapi/segments/api:go_default_library",
"//private/storage:go_default_library",
"//private/storage/beacon:go_default_library",
"@com_github_deepmap_oapi_codegen//pkg/runtime:go_default_library", # keep
"@com_github_getkin_kin_openapi//openapi3:go_default_library", # keep
"@com_github_go_chi_chi_v5//:go_default_library", # keep
"@com_github_pkg_errors//:go_default_library", # keep
"@com_github_oapi_codegen_runtime//:go_default_library", # keep
"@org_golang_google_protobuf//proto:go_default_library",
],
)
Expand Down
Loading

0 comments on commit e02888f

Please sign in to comment.