Skip to content

Commit

Permalink
fix: swaggo dependency error (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus authored May 20, 2024
1 parent b944957 commit c5f076a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions makefiles/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ swagger-check:
$(MAKE) swaggo-install

@echo "--> Generate latest Swagger specs"
mkdir -p .tmp/swagger
swag init -g cardinal/server/server.go -o .tmp/swagger --parseInternal --parseDependency
cd cardinal && \
mkdir -p .tmp/swagger && \
swag init -g server/server.go -o .tmp/swagger --parseInternal --parseDependency

@echo "--> Compare existing and latest Swagger specs"
docker run --rm -v ./:/local-repo ghcr.io/argus-labs/devops-infra-swagger-diff:2.0.0 \
/local-repo/cardinal/server/docs/swagger.json /local-repo/.tmp/swagger/swagger.json && \
cd cardinal && \
docker run --rm -v ./:/local-repo ghcr.io/argus-labs/devops-infra-swagger-diff:2.0.0 \
/local-repo/server/docs/swagger.json /local-repo/.tmp/swagger/swagger.json && \
echo "swagger-diff: no changes detected"

@echo "--> Cleanup"
Expand Down

0 comments on commit c5f076a

Please sign in to comment.