Commit 5f5e9bd
committed
Makefile: Generate full Cilium version in worktree
Previously when using a git worktree for building Cilium, the Makefile
would fail to detect that the local tree is a worktree, and therefore
skip over the step where the sha and timestamp are included in the
ciliumVersion variable which is subsequently built into each binary.
This can make it difficult to track and understand which version of the
code is running during development from a git worktree.
Rather than depending on the existence of .git/HEAD, rely only on .git
(which for a worktree is a file containing the path to the true git root).
Signed-off-by: Joe Stringer <joe@cilium.io>1 parent 1ab79eb commit 5f5e9bd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments