mirror of
https://github.com/msberends/AMR.git
synced 2026-03-30 07:35:57 +02:00
docs: instruct Claude to install git and gh before computing version
This commit is contained in:
11
CLAUDE.md
11
CLAUDE.md
@@ -152,7 +152,16 @@ All PRs are **squash-merged**, so each PR lands as exactly **one commit** on the
|
|||||||
|
|
||||||
#### Computing the correct version number
|
#### Computing the correct version number
|
||||||
|
|
||||||
Run the following from the repo root to determine the version string to use:
|
**First, ensure `git` and `gh` are installed** — both are required for the version computation and for pushing changes. Install them if missing before doing anything else:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
which git || apt-get install -y git
|
||||||
|
which gh || apt-get install -y gh
|
||||||
|
# Also ensure all tags are fetched so git describe works
|
||||||
|
git fetch --tags
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run the following from the repo root to determine the version string to use:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
currenttag=$(git describe --tags --abbrev=0 | sed 's/v//')
|
currenttag=$(git describe --tags --abbrev=0 | sed 's/v//')
|
||||||
|
|||||||
Reference in New Issue
Block a user