Skip to content

docs: add Cursor Cloud environment setup notes - #7044

Closed
rrama wants to merge 1 commit into
mainfrom
cursor/cloud-env-setup-notes-ca2c
Closed

docs: add Cursor Cloud environment setup notes#7044
rrama wants to merge 1 commit into
mainfrom
cursor/cloud-env-setup-notes-ca2c

Conversation

@rrama

@rrama rrama commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What

Adds a ## Cursor Cloud specific instructions section to AGENTS.md documenting the non-obvious environment setup needed to build/run/test the Snyk CLI in Cursor Cloud.

Why

Cursor Cloud has restricted egress and a specific pre-provisioned toolchain. The notes record durable caveats future agents need:

  • Node/npm: /exec-daemon/node is first on PATH but has no npm; use nvm Node 22.22.3 which provides npm 11.12.1 (this repo pins engine-strict=true with npm ^11.12.1).
  • Go toolchain pinned to go1.26.5 (auto-download from go.dev is blocked).
  • Build with make build BUILD_MODE=public (cliv2-private/ is inaccessible); output binary-releases/snyk-linux.
  • convco is installed at /usr/local/bin/convco (required by release-scripts/next-version.sh).
  • The prepare-3rd-party-licenses build step downloads Go's LICENSE from the blocked go.dev; a copy is pre-placed at the gitignored cliv2/internal/embedded/_data/licenses/go.dev/LICENSE so the step skips it.
  • How to run acceptance tests against the built binary + fake server; some specs need real registries and fail under restricted egress.

Docs-only change.

Verification

  • npm ci
  • make build BUILD_MODE=public ✅ → binary-releases/snyk-linux --version works
  • cd cliv2 && go test ./pkg/... ./internal/...
  • npx jest test/jest/unit/lib/formatters ✅ (120 tests)
  • Acceptance snyk-test/all-projects.spec.ts against the built binary ✅ (20/20)
Open in Web Open in Cursor 

Co-authored-by: Ben Durrans <Benjamin.Durrans@snyk.io>
@snyk-io

snyk-io Bot commented Jul 28, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️

Since the CLI is unifying on a standard and improved tooling, we're starting to migrate old-style imports and exports to ES6 ones.
A file you've modified is using either module.exports or require(). If you can, please update them to ES6 import syntax and export syntax.
Files found:

  • AGENTS.md

Generated by 🚫 dangerJS against acc9e9d

@rrama

rrama commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #7050, which now carries the consolidated notes (including the more accurate account of the license-prep workaround: because go-licenses save --force wipes the tree, the Go LICENSE has to be placed after a build, not before). Closing to leave one cloud-setup PR per repo.

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.

2 participants