diff --git a/flake.nix b/flake.nix index 1825ead0..089ce4ef 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,9 @@ # https://github.com/golang-migrate/migrate go-migrate + + # https://github.com/swaggo/swag + go-swag ]; }; }); diff --git a/scripts/swagger-gen.sh b/scripts/swagger-gen.sh index e9218b5d..f053914a 100755 --- a/scripts/swagger-gen.sh +++ b/scripts/swagger-gen.sh @@ -1,2 +1,3 @@ #!/bin/bash +export GOROOT=$(go env GOROOT) swag init -d ./cmd/server -o ./pkg/docs --pd