Skip to content

Commit 44b2f68

Browse files
authored
[chore] remove git error when building (#129)
1 parent eac3850 commit 44b2f68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ SHELL = /bin/bash
129129
.SHELLFLAGS = -o pipefail -c
130130

131131
# SRC_ROOT is the top of the source tree.
132-
# TODO: This causes "/bin/sh: git: not found" when we are using the Makefile in containers that do not have git
133-
# installed.
134-
SRC_ROOT := $(shell git rev-parse --show-toplevel)
132+
SRC_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
135133
TOOLS_BIN_DIR := $(SRC_ROOT)/.tools
136134
CHLOGGEN_CONFIG := .chloggen/config.yaml
137135
CHLOGGEN := $(TOOLS_BIN_DIR)/chloggen

0 commit comments

Comments
 (0)