Skip to content

Commit ae207c2

Browse files
committed
Pin oapi generator version
1 parent 08958b8 commit ae207c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ $(BIN_DIR):
99

1010
# Local binary paths
1111
OAPI_CODEGEN ?= $(BIN_DIR)/oapi-codegen
12+
OAPI_CODEGEN_VERSION ?= v2.5.1
1213
AIR ?= $(BIN_DIR)/air
1314
WIRE ?= $(BIN_DIR)/wire
1415
XCADDY ?= $(BIN_DIR)/xcaddy
1516

1617
# Install oapi-codegen
1718
$(OAPI_CODEGEN): | $(BIN_DIR)
18-
GOBIN=$(BIN_DIR) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
19+
GOBIN=$(BIN_DIR) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@$(OAPI_CODEGEN_VERSION)
1920

2021
# Install air for hot reload
2122
$(AIR): | $(BIN_DIR)

0 commit comments

Comments
 (0)