This is an automated email from the ASF dual-hosted git repository.
xiazcy pushed a commit to branch 3.7-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/3.7-dev by this push:
new 5fc5273c03 CTR isolate plugin install to a docs-only console copy
5fc5273c03 is described below
commit 5fc5273c03984f74caa695125c4162fbae07a3b2
Author: Yang Xia <[email protected]>
AuthorDate: Wed Sep 16 15:37:36 2026 -0700
CTR isolate plugin install to a docs-only console copy
process-docs.sh installed the docs plugins directly into the console
standalone directory that distribution.xml packages into the release zip,
leaking hadoop/spark/neo4j/sparql into shipped distributions. Install into a
throwaway copy under target/ instead so the released console keeps its default
plugin set.
Assisted-by: Kiro:claude-opus-4.8
---
bin/process-docs.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/bin/process-docs.sh b/bin/process-docs.sh
index 9cfc448457..23732cbde4 100755
--- a/bin/process-docs.sh
+++ b/bin/process-docs.sh
@@ -160,7 +160,16 @@ if [ -z "${CONSOLE_DIR}" ] || [ ! -d "${CONSOLE_DIR}" ];
then
echo "Build it first: mvn clean install -pl :gremlin-console -am -DskipTests"
exit 1
fi
-CONSOLE_HOME="$(cd "${CONSOLE_DIR}" && pwd)"
+# Install docs plugins into a throwaway copy, not the real standalone:
distribution.xml packages
+# the console zip from that directory's ext/, so mutating it here would leak
the docs-only
+# plugins into the release artifact. The copy is left in target/ after the run
for inspection and
+# wiped at the start of the next run (line below); it is excluded from all
distributions.
+CONSOLE_SRC="$(cd "${CONSOLE_DIR}" && pwd)"
+CONSOLE_HOME="${TP_HOME}/target/docs-console/$(basename "${CONSOLE_DIR}")"
+echo "Preparing docs-only console copy at ${CONSOLE_HOME}..."
+rm -rf "${CONSOLE_HOME}"
+mkdir -p "$(dirname "${CONSOLE_HOME}")"
+cp -Rp "${CONSOLE_SRC}" "${CONSOLE_HOME}"
# 2. Validate server distribution
SERVER_DIR=$(ls -d
gremlin-server/target/apache-tinkerpop-gremlin-server-*-standalone 2>/dev/null
| head -n1)