Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ webidentity.json
#################################
# Development files #
#################################
scripts/__pycache__/
internal/workspace/**/**/*.yaml
!internal/workspace/**/**/*.config.yaml
!internal/workspace/**/**/*.config.yaml
internal/orchestration/**/**/*.yaml
!internal/orchestration/**/**/*.config.yaml
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ In order to update the clients you need access to some private Snyk repositories
export GITHUB_PAT=<GITHUB_PAT>
```

Also make sure to have `python3` installed.

Then run `make download-apis` to download the latest code. If you want to download a new version, you can also do that.

Then generate the client by running `make generate`.
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ generate: $(TOOLS_BIN)/go/mockgen $(TOOLS_BIN)/go/oapi-codegen
@go generate ./...

.PHONY: download-apis
download-apis: download-workspace-api
download-apis: download-workspace-api download-orchestration-api

.PHONY: download-workspace-api
download-workspace-api:
./scripts/download-workspace-api.sh
./scripts/download-workspace-api.py

.PHONY: download-orchestration-api
download-orchestration-api:
./scripts/download-orchestration-api.py

.PHONY: help
help:
Expand Down
Loading