Skip to content

chore: use external quickstarts module#4236

Merged
gregfurman merged 2 commits into
hatchet-dev:mainfrom
BloggerBust:chore/4107-use-quickstarts-module
Jun 25, 2026
Merged

chore: use external quickstarts module#4236
gregfurman merged 2 commits into
hatchet-dev:mainfrom
BloggerBust:chore/4107-use-quickstarts-module

Conversation

@BloggerBust

Copy link
Copy Markdown
Collaborator

Description

This is Phase 3 of #4107, which moves the quickstart templates into a dedicated module so they can be versioned and released on their own. hatchet-cli now loads quickstart templates from the github.com/hatchet-dev/hatchet-quickstarts module at v0.1.0 instead of embedding the local cmd/hatchet-cli/cli/templates/ tree.

Refs #4107. Completes Phase 3

Type of change

  • Chore (changes which are not directly related to any business logic)
  • CI (any automation pipeline changes)

What's Changed

  • quickstart.go loads templates via quickstarts.TemplatesFS() from the external module, replacing the embedded content filesystem and the //go:embed all:templates/* declaration.
  • Added github.com/hatchet-dev/hatchet-quickstarts v0.1.0 to go.mod and go.sum as a direct dependency, with no replace.
  • Removed the local cmd/hatchet-cli/cli/templates/ tree.
  • Dropped the stale cmd/hatchet-cli/cli/templates/** entries from .github/workflows/cli-e2e-tests.yml, under both pull_request and push.

Checklist

Changes have been:

  • Tested (unit, integration, or manually with steps specified)
  • Linted and formatted
  • Documented (where applicable)
  • Added to CHANGELOG (where applicable) -- see Keep a Changelog

Testing

Validated locally:

  • go build ./cmd/hatchet-cli/...
  • go test ./cmd/hatchet-cli/cli/internal/templater/... ./cmd/hatchet-cli/cli/...
  • go test -tags e2e_cli -run TestQuickstartTemplates -count=0 ./cmd/hatchet-cli/cli/ (compiles the e2e target)
  • go test ./cmd/hatchet-cli/...
  • go vet ./cmd/hatchet-cli/cli/..., gofmt, and go mod tidy with no resulting changes

🤖 AI Disclosure
  • I acknowledge that an LLM was used in the creation of this Pull Request, in accordance with Hatchet's AI_POLICY.md.

  • Details: Claude code was used for review and validation.

Update hatchet-cli to load quickstart templates from the
github.com/hatchet-dev/hatchet-quickstarts module instead of embedding the
local template tree.

Removes the cli templates source and stale e2e workflow path filters for the deleted template tree.

Refs hatchet-dev#4107.
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@BloggerBust is attempting to deploy a commit to the Hatchet Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added github_actions Pull requests that update GitHub Actions code engine Related to the core Hatchet engine labels Jun 18, 2026
@BloggerBust BloggerBust requested a review from gregfurman June 19, 2026 21:56

@gregfurman gregfurman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@abelanger5 abelanger5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@gregfurman gregfurman merged commit 7fe103e into hatchet-dev:main Jun 25, 2026
60 of 62 checks passed
@gregfurman

gregfurman commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Just realised this is going to upset dependabot since it'll no longer find these quickstart subdirs 😅

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

Labels

engine Related to the core Hatchet engine github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants