Support array of paths in varlock.loadPath package.json config#571
Draft
Support array of paths in varlock.loadPath package.json config#571
varlock.loadPath package.json config#571Conversation
🦋 Changeset detectedLatest commit: 3629437 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/b16894a5-e719-42be-98cf-15755b943858 Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
varlock-website | 3984b1f | Commit Preview URL Branch Preview URL |
Apr 08 2026, 11:50 PM |
…e, rename variable Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/b16894a5-e719-42be-98cf-15755b943858 Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multiple loadPaths in package.json
Support array of paths in Apr 8, 2026
varlock.loadPath package.json config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
varlock.loadPathonly accepted a single string, making monorepo setups require a root.envfile with@importdirectives just to combine env vars from multiple packages.Changes
VarlockPackageJsonConfig:loadPathtype widened tostring | string[]MultiplePathsContainerDataSource(new class indata-source.ts): Virtual root container that wraps multipleDirectoryDataSource/DotEnvFileDataSourceinstances, preserving the single-root invariant inEnvGraphisExplicitRootflag onEnvGraphDataSource: Prevents explicitly-specified top-level paths from being classified as env-specific (theapplyForEnv && parentcheck inisEnvSpecific) even when they have the virtual container as a parentloadEnvGraph: NewentryFilePaths?: string[]option; routes toMultiplePathsContainerDataSourcewhen >1 paths providedloadVarlockEnvGraph: Normalizes array/stringloadPath, validates all paths exist, dispatches to single or multi-path loader accordinglyLater entries in the array take higher precedence (consistent with
@importordering).{ "varlock": { "loadPath": ["./apps/my-package/envs/", "./apps/other-package/envs/"] } }Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.iconify.design/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --experimental-import-meta-resolve --require /home/REDACTED/work/varlock/varlock/node_modules/vitest/suppress-warnings.cjs --conditions node --conditions development /home/REDACTED/work/varlock/varlock/node_modules/vitest/dist/workers/forks.js(dns block)/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --experimental-import-meta-resolve --require /home/REDACTED/work/varlock/varlock/node_modules/vitest/suppress-warnings.cjs --conditions node --conditions development /home/REDACTED/work/varlock/varlock/node_modules/vitest/dist/workers/forks.js --global bin/node node bin/�� b/load-graph.ts src/env-graph/test/multi-path-loading.test.ts(dns block)If you need me to access, download, or install something from one of these locations, you can either: