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

lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/rocketmq-studio by this push:
     new 7e22f69c8 fix(deploy): ship LICENSE and NOTICE with the source package 
(#5759)
7e22f69c8 is described below

commit 7e22f69c8f92454af93f1c30a35d298cc5c37dcc
Author: lizhimins <[email protected]>
AuthorDate: Fri Oct 9 12:54:00 2026 +0800

    fix(deploy): ship LICENSE and NOTICE with the source package (#5759)
---
 deploy/deploy.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/deploy/deploy.sh b/deploy/deploy.sh
index 553e9fa1b..5cde0caf3 100755
--- a/deploy/deploy.sh
+++ b/deploy/deploy.sh
@@ -56,10 +56,13 @@ package_source() {
   # deploy/.env 是环境专属配置(如 STUDIO_METRICS_PROMETHEUS_BASE_URL),不随源码覆盖远端
   # rmqctl 必须随包上传:server 镜像构建上下文是仓库根目录,Dockerfile 的 Go 阶段要 COPY rmqctl/
   # (rmqctl/bin 是本地构建产物,不上传)
+  # LICENSE and NOTICE travel with the package for the same reason: the rmqctl 
stage of
+  # server/Dockerfile runs `COPY LICENSE NOTICE /src/` against the repository 
root as its build
+  # context, so building in a fresh remote directory fails at that step 
without them.
   tar czf "$SRC_TAR" -C "$PROJECT_DIR" \
     --exclude='web/node_modules' --exclude='web/dist' 
--exclude='server/target' \
     --exclude='deploy/.env' --exclude='rmqctl/bin' \
-    server web deploy rmqctl
+    LICENSE NOTICE server web deploy rmqctl
   log "打包完成 ($(du -h "$SRC_TAR" | cut -f1))"
 }
 

Reply via email to