CtrlK
BlogDocsLog inGet started
Tessl Logo

setup-env

Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).

72

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Instructions

Before running any make target (make test, make bins, make lint-go, etc.), the direnv environment must be loaded. Without it, make will fail with errors about AKASH_DIRENV_SET or AKASH_ROOT not being set.

Steps

  1. Allow and load direnv for the project root. This sets all required variables (AKASH_ROOT, AKASH_DIRENV_SET, GOTOOLCHAIN, GOPATH, GOWORK, cache paths) adds tool directories to PATH, and runs make cache to download build tools and wasmvm libraries:

    direnv allow
  2. Load environment into current shell:

    eval "$(direnv export bash 2>&1 | grep -v '^direnv:')"
  3. Validate:

    [[ "$AKASH_DIRENV_SET" == "1" ]] && echo "direnv loaded" || echo "ERROR: direnv not loaded"

Notes

  • If direnv fails, check that required system tools are installed: make, unzip, wget, curl, npm, jq, readlink, pv, lz4.
  • On macOS, Homebrew make (v4+) must be on PATH: export PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH".
Repository
akash-network/node
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.