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,118
フォーク
277

インストール方法

デフォルトでは、最初にソースを確認する 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で見る