Skip to content

Commit 7fb60bf

Browse files
committed
Cleanup
1 parent a8651b4 commit 7fb60bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ build:
88
exit 1; \
99
fi
1010
@hash=$$(git rev-parse HEAD); \
11-
tag=$$(git describe --tags --abbrev=0 HEAD 2>/dev/null || echo ""); \
11+
tag=$$(git tag --sort=-version:refname | head -1); \
1212
if [ -z "$$tag" ]; then \
13-
echo "Error: No tag found for current commit" >&2; \
13+
echo "Error: No tags found in repository" >&2; \
1414
exit 1; \
1515
fi; \
1616
short_hash=$$(git rev-parse --short HEAD); \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ This project automates the building of custom Firecracker versions. It supports
1313

1414
### Local Build
1515

16-
Build the current git version (latest tag + commit hash):
16+
Build the current git version (latest tag in repository + current commit hash):
1717

1818
```sh
1919
make build
2020
```
2121

2222
**Requirements:**
2323
- The repository must be in a clean state (no uncommitted changes)
24-
- The current commit must have an associated tag
25-
- The built firecracker will be placed in `builds/<tag>_<shorthash>/firecracker`
24+
- The repository must have at least one tag
25+
- The built firecracker will be placed in `builds/<latest_tag>_<current_commit_shorthash>/firecracker`
2626

2727
### CI/CD Build
2828

0 commit comments

Comments
 (0)