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

Đang mở Phù hợp với người mới
#4,428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, docker-compose, shell
Lĩnh vực
devops

Hướng nghiên cứu

Bắt đầu trong deploy/docker/deploy.sh tại các khối set -a; source (khoảng dòng 624-625, 693-694, 633-635 và 1481-1483) và so sánh chúng với deploy-official-agents.sh, tệp đã đặt MSYS_NO_PATHCONV=1. Việc tái hiện cần một máy chủ Windows có Git Bash và Docker Desktop, nên người đánh giá có thể xác minh bản sửa bằng cách kiểm tra các giá trị GOTRUE_MAILER_URLPATHS_* trong container supabase-auth-mini. Hoàn tất nghĩa là các giá trị đó vẫn là /auth/v1/verify khi triển khai từ Git Bash.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
6.2k
Fork
785
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
123

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ModelEngine-Group/nexent

Tất cả issue của ModelEngine-Group/nexent

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.