Repository navigation
Conversation
- .cursor/environment.json: repo-managed environment using the default image and an idempotent install command. - scripts/cloud-agent-install.sh: downloads Go module deps for every module and installs the CI lint/security tools (golangci-lint v2.4.0, gosec v2.27.1). Co-authored-by: t04dJ14n9 <t04dJ14n9@users.noreply.github.com>
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.
Summary
Sets up a reproducible Cloud Agent development environment for this repository. The base image already ships
go1.23.1(the pinned toolchain), so no custom Dockerfile is needed — only a repo-managed.cursor/environment.jsonplus an idempotent install script.Changes
.cursor/environment.json— repo-managed environment using the default image and aninstallcommand.scripts/cloud-agent-install.sh— idempotent bootstrap that:go mod downloadfor every module (root,cmd/gig,examples/simple,examples/custom,benchmarks);golangci-lint v2.4.0andgosec v2.27.1, exposing them onPATH.Validation
All checks ran on the VM and again on a fresh Cloud Agent booted from a prebuilt environment build (
bld-20260813-24f18900-0b3b-4ab1-80ee-e6d9f0c5fdf9).go build ./...(root,cmd/gig,examples/simple,benchmarks)go test -race ./...(root)go test -race ./...(cmd/gig)examples/simpleinterpreter runSum of 1..10 = 55,Hello, WORLD! …gigCLIinit→gen→ build → run (third-party gjson binding)Interpreted result: ALICEgolangci-lint run(root + CLI)gosec(root + CLI)Note on
examples/customThe committed
examples/custom/mydep/packages/bytes.goreferences Go 1.24+ stdlib symbols (bytes.FieldsSeq,bytes.Lines, …), so that module does not build under the repo's pinnedgo1.23.1. This is a pre-existing repository inconsistency (perCLAUDE.md, bindings must be generated withgo1.23.1), not an environment issue — regenerating withgo1.23.1produces buildable code. The install script still downloads its dependencies; only thego buildof that one example is affected.