deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: --env-file not available at top-level

Open iacore opened this issue 7 months ago • 0 comments

Problem description

Environment variables inside .env (passed as --env-file) are not accessible in main module.

Steps to reproduce

https://gist.github.com/iacore/7f33b19d8e5f0db8420531be8c8d8bd8

git clone https://gist.github.com/7f33b19d8e5f0db8420531be8c8d8bd8.git test_repo
cd test_repo
bash deploy

output:

× Deployment failed.
error: The deployment failed: UNCAUGHT_EXCEPTION

AssertionError
    at assert (https://jsr.io/@std/assert/1.0.13/assert.ts:21:11)
    at file:///src/main.ts:3:1

Expected behavior

Deployment should succeed

Environment

No response

Possible solution

No response

Additional context

No response

iacore avatar May 09 '25 04:05 iacore