Skip to content

Conversation

Copy link

Copilot AI commented Jan 8, 2026

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>[BUG]: varlock init has surprising results in monorepos</issue_title>
<issue_description>### varlock version

0.1.3

Steps to reproduce

  1. Have a repo where .env files are not at the root of the project
  2. Run pnpm exec varlock init

What is expected?

Ideally: It will find the .env/.env.example files in your project, and help you create an .env.schema for each.

Simpler: It will notice there are .env files elsewhere, and ask you to run pnpm exec varlock init from those locations.

What is actually happening?

It creates a blank .env.schema in your project root, then asks you to review and update it.

System Info

Any additional comments?

No response</issue_description>

<agent_instructions>Dont worry about detecting if we are in a monorepo.

If there are no .env files within the current directory, do a search within child directories (be sure to ignore node_modules) and if any .env files are found, just display a message explaining to the user that it looks like they are in a monorepo, and they should run varlock init within each child directory, and that common config can then be pulled into a shared location and imported.
</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

⚠️ No Changeset found

Latest commit: 23bf1af

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@theoephraim
Copy link
Member

@copilot try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: varlock init has surprising results in monorepos

2 participants