mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 08:46:38 +00:00
fix lint clean up fix MarkPendingJobsAsFailed apply feedbacks 1 fix typo change api and apply new schema fix lint fix api object clean switch case apply feedback 2 fix error handle in create job get rid of any/interface type in job database fix sonar issue use RawJson for both parameters and results running go mod tidy update package fix 1 update codegen fix code-gen fix snyk fix snyk hopefully
17 lines
348 B
Bash
Executable File
17 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! which realpath > /dev/null 2>&1
|
|
then
|
|
echo realpath is not installed
|
|
echo run: brew install coreutils
|
|
exit 1
|
|
fi
|
|
|
|
old_pwd=$(pwd)
|
|
script_path=$(dirname $(realpath "$0"))
|
|
cd "$script_path"
|
|
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
|
|
oapi-codegen --config cfg.yaml openapi.yml
|
|
cd "$old_pwd"
|