docs: add Cursor Cloud dev environment notes#6901
Closed
bgardiner wants to merge 1 commit into
Closed
Conversation
Co-authored-by: bgardiner <bgardiner@users.noreply.github.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
|
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.
What
Sets up the development environment for the Snyk CLI (hybrid TypeScript + Go) in Cursor Cloud and documents the non-obvious setup caveats discovered while doing so. The only code change is a new
## Cursor Cloud specific instructionssection inAGENTS.md.Environment setup performed
>=11.10—.npmrcsetsengine-strict=trueandpackage.jsonrequires npm^11.10, but the base image ships npm 10.x, which makesnpm installfail outright.cliv2/go.modpins agoversion newer than the systemgo.GOTOOLCHAIN=autodownloads the pinned toolchain fromproxy.golang.orgautomatically; no manual install needed.convco@0.6.2installed via cargo (required bymake build→release-scripts/next-version.sh). Newerconvconeeds a newerrustcthan the image provides.Startup update script:
npm install.Verified
npm run lintnpm run test:unitcd cliv2 && make testinternal/proxy(blocked egress todownloads.snyk.io)make build BUILD_MODE=publicbinary-releases/snyk-linuxprint-graphacceptance test against the built binaryNotes for future agents (captured in AGENTS.md)
BUILD_MODE=public(private modules need GitHub access this VM lacks).make build's license step fetches ago.devlicense; egress is blocked, so pre-seed it from the local Go toolchain (cp "$(cd cliv2 && go env GOROOT)/LICENSE" cliv2/internal/embedded/_data/licenses/go.dev/LICENSE).npm run build --workspaces).snyk testinvocations do anapi.snyk.iopreflight (blocked); use the acceptance fake-server harness for offline scanning smoke tests.snyk_hello_world.log
To show artifacts inline, enable in settings.