Skip to content

Import envbuilder#1198

Draft
hanabel1 wants to merge 4 commits intomainfrom
new-envbuild
Draft

Import envbuilder#1198
hanabel1 wants to merge 4 commits intomainfrom
new-envbuild

Conversation

@hanabel1
Copy link
Copy Markdown
Contributor

@hanabel1 hanabel1 commented Apr 1, 2026

Changes

=======

  • Add newEnvbuildCmd to cmd/envbuild.go with two subcommands: env and build
    • Add circleci envbuild env subcommand that detects the tech stack of a repository and prints a JSON environment spec to stdout
    • Add circleci envbuild build subcommand that reads a JSON environment spec from stdin, writes Dockerfile.test, and runs docker build
    • Register envbuild command in cmd/root.go
    • Add github.com/CircleCI-Public/chunk-cli as a dependency (with local replace directive) to expose the envbuilder package
Screenshot 2026-04-01 at 3 35 02 PM

There are a lot of lint issues but it works.

Here are some helpful tips you can follow when submitting a pull request:

  1. Fork the repository and create your branch from main.
  2. Run make build in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (make test).
  5. The --debug flag is often helpful for debugging HTTP client requests and responses.
  6. Format your code with gofmt.
  7. Make sure your code lints (make lint). Note: This requires Docker to run inside a local job.

@hanabel1 hanabel1 marked this pull request as draft April 1, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant