[Bug] On Windows, `deploy.sh` run in Git Bash rewrites path-like values from `.env`

未关闭 适合新手
#4,428 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
docker, docker-compose, shell
领域
devops

调研方向

从 deploy/docker/deploy.sh 中的 set -a; source 代码块开始(大约在第 624-625、693-694、633-635 和 1481-1483 行),并将它们与 deploy-official-agents.sh 比较,后者已经设置了 MSYS_NO_PATHCONV=1。复现需要一个装有 Git Bash 和 Docker Desktop 的 Windows 主机,因此评审者可以通过检查 supabase-auth-mini 容器中的 GOTRUE_MAILER_URLPATHS_* 值来验证修复。完成意味着从 Git Bash 部署时这些值保持为 /auth/v1/verify。

由索引模型根据 Issue 内容生成。

描述

Nexent Version

v2.8.5

Problem Description

Where: deploy/docker/deploy.sh:624-625 (also 693-694) set -a; source "$ROOT_ENV_FILE".

Why: Git Bash (MSYS) converts POSIX-path-looking environment values when launching native programs (docker.exe),
and compose gives shell variables precedence over --env-file.

Actual: after deploying from Git Bash, GOTRUE_MAILER_URLPATHS_CONFIRMATION / INVITE / RECOVERY / EMAIL_CHANGE in the
supabase-auth-mini container are a Windows path under the Git for Windows installation (…/Git/auth/v1/verify) instead of /auth/v1/verify, so e-mail links
would be wrong. deploy-official-agents.sh already sets MSYS_NO_PATHCONV=1; deploy.sh does not.

Reproduction Steps

on a Windows host, run deploy/docker/deploy.sh from Git Bash with the default .env, then read the
GOTRUE_MAILER_URLPATHS_* variables inside the supabase-auth-mini container.

Additional Information

Suggestion: set MSYS_NO_PATHCONV=1 and MSYS2_ARG_CONV_EXCL='*' on MINGW/MSYS, or do not export .env into the
environment and rely on --env-file.

Related: #4305 is another Windows Git Bash deployment problem (port check), not this one.

Status on develop (95d7cbf, read 2026-11-24): still present. deploy/docker/deploy.sh still runs set -a before
sourcing the env files (lines 633-635 and 1481-1483); MSYS2_ARG_CONV_EXCL is set only for /opt/ (lines 1182
and 1253). Not re-run on develop.

Environment: Nexent v2.8.5, Docker Compose deployment, Windows 11 host with Docker Desktop; reproduced only on the local machine.

This report was drafted with AI assistance (Claude Code); the observations come from our local Nexent v2.8.5 deployment.

主要语言
Python
星标
6.2k
派生
785
平均合并
1 天 10 小时
30 天内合并 PR
123

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ModelEngine-Group/nexent 的其他 Issue

查看 ModelEngine-Group/nexent 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。