You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting)."
4
+
---
5
+
# Instructions
6
+
7
+
Before running any make target (`make test`, `make bins`, `make lint-go`, etc.), the direnv environment **must** be loaded.
8
+
Without it, make will fail with errors about `AKASH_DIRENV_SET` or `AKASH_ROOT` not being set.
9
+
10
+
## Steps
11
+
12
+
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:
description: "Registers node major version vanity URL in the sibling vanity repo"
4
+
---
5
+
# Instructions
6
+
7
+
Register the current node major version as a vanity URL in the `github.com/com/akash-network/vanity` repo.
8
+
9
+
## Steps
10
+
11
+
1.**Read the major version** from `go.mod` in this repo. Extract the version suffix from the module path (e.g. `pkg.akt.dev/node/v2` → `v2`). If the module path has no version suffix (v0/v1), abort — no vanity entry is needed.
12
+
13
+
2.**Get the current git branch name** using `git rev-parse --abbrev-ref HEAD`.
14
+
15
+
3.**Open `vanity/vangen.json`** and check if a repository entry with `"prefix": "node/vN"` already exists (where `vN` is the version from step 1). If it exists, inform the user and abort.
16
+
17
+
4.**Add a new entry** to the `repositories` array in `vanity/vangen.json`:
Replace `vN` with the detected version and `BRANCH` with the detected branch name. Place the entry after the last existing `node` entry.
35
+
36
+
5.**Run `make vangen`** in `vanity` to regenerate HTML files.
37
+
38
+
6.**Verify** that `vanity/node/vN/index.html` was created and contains the correct `go-import` and `go-source` meta tags pointing to the detected branch. Also verify that existing `vanity/node/index.html` and any `vanity/node/vN/index.html` is unchanged.
0 commit comments