completion missing in cmctl: Can someone translate bazel to regular "go build" commands?
Hi all, recently I built cmctl, the CLI tool accompanying cert-manager. The tool itself works, but as Robert pointed out the completion is not active: https://cert-manager.io/docs/usage/cmctl/#completion $ cmctl completion help Error: unknown command "completion" for "cmctl" Run 'cmctl --help' for usage. unknown command "completion" for "cmctl" The help does not contain any hint of completion. The upstream package is built using bazel, while I created the RPM to build the pieces directly using "go build...". Can someone help out and "translate" the bazel configuration to something that I can use in OBS? https://github.com/cert-manager/cert-manager/blob/master/cmd/ctl/BUILD.bazel...
go_binary( name = "ctl", out = "cmctl", embed = [":go_default_library"], pure = "on", visibility = ["//visibility:public"], x_defs = { "github.com/cert-manager/cert-manager/cmd/ctl/pkg/build.name": "cmctl", "github.com/cert-manager/cert-manager/cmd/ctl/pkg/build/commands.registerCompletion": "true", }, )
Using bazel itself is not possible, this package requires 4.0.0 while OBS only has 3.7.x. And there would be lots of dependencies as far as I can see. Thanks in advance! Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (1)
-
Johannes Kastl