Skip to content

chore(cli): add Go quickstart dependency update task#4087

Merged
mrkaye97 merged 1 commit into
hatchet-dev:mainfrom
BloggerBust:chore/go-quickstart-deps
Jun 5, 2026
Merged

chore(cli): add Go quickstart dependency update task#4087
mrkaye97 merged 1 commit into
hatchet-dev:mainfrom
BloggerBust:chore/go-quickstart-deps

Conversation

@BloggerBust

Copy link
Copy Markdown
Collaborator

Description

Add a script and Taskfile target for updating the embedded Go quickstart template dependencies. The script runs the update in a temporary project directory, strips .embed suffixes for compatability with the go toolchain, and copies the updated go.mod and go.sum back into the template.

This is necessary because the Go template uses go.mod.embed, which Dependabot will not discover given the current logic in the file fetcher..

This PR also runs the new task once to update the Go quickstart template from v0.87.1 to v0.88.6.

Type of change

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

What's Changed

  • Add hack/update-go-quickstart-deps.sh for updating the embedded Go quickstart template dependency files.
  • Add task update-go-quickstart-deps with optional VERSION=vX.Y.Z override.
  • Update the Go quickstart template Hatchet SDK dependency from v0.87.1 to v0.88.6.

Checklist

Changes have been:

Testing

Validated locally with:

bash -n hack/update-go-quickstart-deps.sh
bash hack/update-go-quickstart-deps.sh v0.88.6
bash hack/update-go-quickstart-deps.sh v0.88.6 # ran a second time to verifiy idempotency
bash hack/update-go-quickstart-deps.sh v99.99.99 # verified bad versions will not corrupt files
go build ./cmd/hatchet-cli/...

Also generated the Go quickstart template and verified the output contains go.mod rather than go.mod.embed, with github.com/hatchet-dev/hatchet v0.88.6.


🤖 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: Used Claude Code to investigate the Go quickstart template dependency automation, explain the go.mod.embed and //go:embed constraints and validate the solution.

Add a script and Taskfile target for updating the embedded Go
quickstart template dependencies. The script runs the update in a
temporary project directory and copies the updated `go.mod` and
`go.sum` back into the template.

Run the new task once to update the Go quickstart template from v0.87.1 to v0.88.6.
@vercel

vercel Bot commented Jun 4, 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 the engine Related to the core Hatchet engine label Jun 4, 2026
@mrkaye97 mrkaye97 merged commit 002b4f7 into hatchet-dev:main Jun 5, 2026
36 of 38 checks passed
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants