Skip to main content

setup-env

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

소스 정보

저장소
akash-network/node
최근 소스 활동
2026년 4월 27일 15:10
감지된 SKILL.md 언어
영어
스타
1,116
포크
276

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
setup-env
description
Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).
# 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: ```bash direnv allow ``` 2. **Load environment into current shell**: ```bash eval "$(direnv export bash 2>&1 | grep -v '^direnv:')" ``` 3. **Validate**: ```bash [[ "$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"`.
GitHub에서 보기