From 8b1a899014f321bfc82ee3d676d9ffec204cad4d Mon Sep 17 00:00:00 2001 From: Jan Bronicki Date: Fri, 6 Jun 2025 13:24:24 +0200 Subject: [PATCH] docs: add instructions for working with forks and fetching upstream tags --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index f3673d012e..57459f1b05 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,17 @@ To clone the scripts repo and pick a version: * list releases (e.g. all Alpha releases): `git tag -l alpha-*` * check out the release version, e.g. `3033.0.0`: `git checkout 3033.0.0` +### Working with forks + +If you're working with a fork of the scripts repository, you'll need to fetch the upstream tags to avoid version detection issues: + +```bash +git remote add upstream https://github.com/flatcar/scripts.git +git fetch --tags upstream +``` + +This is necessary because the SDK uses `git describe --tags` to determine the current version, and forks don't include the original repository's tags by default. + To use the SDK container: * Fetch image and start the SDK container: `./run_sdk_container -t` This will fetch the container image of the "scripts" repo's release version you checked out.