Skip to content

Commit

Permalink
fix: go-swag env
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed May 12, 2024
1 parent ac26de2 commit 819c1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

# https://github.com/golang-migrate/migrate
go-migrate

# https://github.com/swaggo/swag
go-swag
];
};
});
Expand Down
1 change: 1 addition & 0 deletions scripts/swagger-gen.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
export GOROOT=$(go env GOROOT)
swag init -d ./cmd/server -o ./pkg/docs --pd

0 comments on commit 819c1e4

Please sign in to comment.