Skip to content

Commit d67a47e

Browse files
cashwinichourasiaHarness
authored andcommitted
fix:[AH-2523] : Onboard harness-cli to sonar (#169)
* d3645b fixing oapi-codegen version * bd8da8 fixed pin github.com/hashicorp/go-slug to v0.16.8 for CI stability * 117712 added install logic for OAPI-codegen
1 parent 4b2762a commit d67a47e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif
1717
.PHONY: generate build clean
1818

1919
# Generate code for every service folder that owns an openapi.yaml
20-
generate: $(SERVICES:%=generate-%)
20+
generate: $(GOBIN)/oapi-codegen $(SERVICES:%=generate-%)
2121

2222

2323
tools = $(addprefix $(GOBIN)/, golangci-lint goimports govulncheck protoc-gen-go protoc-gen-go-grpc gci oapi-codegen)
@@ -50,7 +50,7 @@ format: tools # Format go code and error if any changes are made
5050
# Install oapi-codegen
5151
$(GOBIN)/oapi-codegen:
5252
@echo "🔘 Installing oapi-codegen... (`date '+%H:%M:%S'`)"
53-
@go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
53+
@go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1
5454

5555
# Generate mock binary fixtures (NuGet .nupkg, NPM .tgz, Dart .tar.gz)
5656
# into testdata/binary/ for the mock_jfrog adapter. Run once after cloning.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/google/go-containerregistry v0.20.6
1212
github.com/google/uuid v1.6.0
1313
github.com/hashicorp/go-retryablehttp v0.7.8
14-
github.com/hashicorp/go-slug v1.0.0
14+
github.com/hashicorp/go-slug v0.16.8
1515
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf
1616
github.com/oapi-codegen/runtime v1.1.1
1717
github.com/pterm/pterm v0.12.80

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l
167167
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
168168
github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVUrx/c8Unxc48=
169169
github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw=
170-
github.com/hashicorp/go-slug v1.0.0 h1:aOwhQ1fIbyRAUdBDzXZK2LVmsFFQYuuvJhOM8X9XW3o=
171-
github.com/hashicorp/go-slug v1.0.0/go.mod h1:Zxkkl8/LfXmhxZO3fLXQUCy3MVXAJK9pybY8WoDPgvs=
170+
github.com/hashicorp/go-slug v0.16.8 h1:f4/sDZqRsxx006HrE6e9BE5xO9lWXydKhVoH6Kb0v1M=
171+
github.com/hashicorp/go-slug v0.16.8/go.mod h1:hB4mUcVHl4RPu0205s0fwmB9i31MxQgeafGkko3FD+Y=
172172
github.com/hashicorp/golang-lru/arc/v2 v2.0.5 h1:l2zaLDubNhW4XO3LnliVj0GXO3+/CGNJAg1dcN2Fpfw=
173173
github.com/hashicorp/golang-lru/arc/v2 v2.0.5/go.mod h1:ny6zBSQZi2JxIeYcv7kt2sH2PXJtirBN7RDhRpxPkxU=
174174
github.com/hashicorp/golang-lru/v2 v2.0.5 h1:wW7h1TG88eUIJ2i69gaE3uNVtEPIagzhGvHgwfx2Vm4=

0 commit comments

Comments
 (0)