con un clic
setup-env
// Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).
// Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
Generates CHANGELOG.md entries for upgrade versions found in upgrades/software/ by parsing init.go and upgrade.go
Builds all cosmwasm contracts
Registers node major version vanity URL in the sibling vanity repo
| name | setup-env |
| description | Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting). |
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.
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
Load environment into current shell:
eval "$(direnv export bash 2>&1 | grep -v '^direnv:')"
Validate:
[[ "$AKASH_DIRENV_SET" == "1" ]] && echo "direnv loaded" || echo "ERROR: direnv not loaded"
make, unzip, wget, curl, npm, jq, readlink, pv, lz4.make (v4+) must be on PATH: export PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH".