File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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 ) ; \
Original file line number Diff line number Diff 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
1919make 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
You can’t perform that action at this time.
0 commit comments