-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't workingbunerrors related to bun runtime - https://bun.comerrors related to bun runtime - https://bun.com
Description
varlock version
0.0.11
Steps to reproduce
-
Clone repo: https://github.com/trevordcampbell/varlock-testing
-
Open project in DevContainer (Already fully configured)
-
Install:
bun install -
Run the script with all possible environments:
# Test 1: Load command with production env
APP_ENV=production bun varlock load
# Expected:
# ✅ APP_ENV*: "production"
# ✅ LOG_LEVEL*: "warn"
# ✅ OVERRIDE_LOADED_FROM*: "production"
# Actual output:
# ✅ APP_ENV*: "production"
# ✅ LOG_LEVEL: "debug"
# ✅ OVERRIDE_LOADED_FROM*: "development"
# Test 2: Run command with production env
APP_ENV=production bunx varlock run -- bun script.ts
# Expected output:
# APP_ENV: production
# LOG_LEVEL: warn
# OVERRIDE_LOADED_FROM: production
# Actual output:
# APP_ENV: production
# LOG_LEVEL: debug
# OVERRIDE_LOADED_FROM: development
# Test 3: Run command with staging env
APP_ENV=staging bunx varlock run -- bun script.ts
# Expected output:
# APP_ENV: staging
# LOG_LEVEL: info
# OVERRIDE_LOADED_FROM: staging
# Actual output:
# APP_ENV: staging
# LOG_LEVEL: debug
# OVERRIDE_LOADED_FROM: developmentWhat is expected?
When setting APP_ENV=production, Varlock should:
- Load
.env.productionoverride file - Apply production-specific environment variables
- Show
OVERRIDE_LOADED_FROM=production
What is actually happening?
Regardless of APP_ENV value, Varlock:
- Always loads
.env.developmentoverride file - Applies development-specific environment variables
- Always shows
OVERRIDE_LOADED_FROM=development
System Info
System:
OS: Linux 6.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (14) arm64 unknown
Memory: 12.12 GB / 15.66 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
npmPackages:
@biomejs/biome: ^2.2.2 => 2.2.2
@types/bun: latest => 1.2.21
turbo: ^2.5.6 => 2.5.6
typescript: ^5.9.2 => 5.9.2
ultracite: ^5.2.5 => 5.2.5
varlock: latest => 0.0.11Any additional comments?
Notes:
- This is using Bun instead of npm / pnpm
- This is running in a DevContainer (usually not relevant... but sometimes it is!)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbunerrors related to bun runtime - https://bun.comerrors related to bun runtime - https://bun.com