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:55:35 UTC

(incubator-devlake) branch main updated: fix: github make swag failed (#6355)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new db1769101 fix: github make swag failed (#6355)
db1769101 is described below

commit db17691016e0762bd4728365784526f53a64ce79
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Mon Oct 30 11:55:31 2023 +0800

    fix: github make swag failed (#6355)
---
 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