You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/10/30 03:44:10 UTC
(incubator-devlake) branch kw-makeswag-ci-failed created (now 847653102)
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a change to branch kw-makeswag-ci-failed
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at 847653102 fix: github make swag failed
This branch includes the following new commits:
new 847653102 fix: github make swag failed
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix: github make swag failed
Posted by kl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch kw-makeswag-ci-failed
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 847653102fa297299ae08c227bf77ad73b942b9a
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Mon Oct 30 11:43:58 2023 +0800
fix: github make swag failed
---
backend/scripts/swag.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/backend/scripts/swag.sh b/backend/scripts/swag.sh
index ae7ec4e3b..7284d0e42 100755
--- a/backend/scripts/swag.sh
+++ b/backend/scripts/swag.sh
@@ -19,7 +19,6 @@ set -e
ROOT_DIR=$(dirname $(dirname "$0"))
-echo $ROOT_DIR
# generate all docs by default, set the working dir (-d .) to root and general api info file (-g ./server/api/api.go).
DOC_DIRS=$ROOT_DIR
GENERAL_API_INFO_PATH=$ROOT_DIR/server/api/api.go
@@ -37,5 +36,5 @@ if [ -n "$DEVLAKE_PLUGINS" ]; then
fi
fi
-swag init --parseDependency --parseInternal -o $DIR/server/api/docs -g $GENERAL_API_INFO_PATH -d $DOC_DIRS
+swag init --parseDependency --parseInternal -o $ROOT_DIR/server/api/docs -g $GENERAL_API_INFO_PATH -d $DOC_DIRS
echo "visit the swagger document on http://localhost:8080/swagger/index.html";
\ No newline at end of file