Skip to content

Commit

Permalink
[build]: Fixes: fatal: not a git repository error during build (sonic…
Browse files Browse the repository at this point in the history
…-net#6090)

It fixes the following error during build.

>>> fatal: not a git repository (or any of the parent directories): .git
        "SONIC_DPKG_CACHE_METHOD"         : "cache"
        "DPKG_CACHE_PATH"                 : "/var/cache/sonic/artifacts"
  • Loading branch information
Kalimuthu-Velappan authored Dec 2, 2020
1 parent 19b592b commit 61419f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/sonic-host-service.dep
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

ifeq ($(INCLUDE_HOST_SERVICE), y)
SPATH := $($(SONIC_HOST_SERVICE)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-host-service.mk rules/sonic-host-service.dep
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
Expand All @@ -8,4 +9,4 @@ $(SONIC_HOST_SERVICE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(SONIC_HOST_SERVICE)_DEP_FILES := $(DEP_FILES)
$(SONIC_HOST_SERVICE)_SMDEP_FILES := $(SMDEP_FILES)
$(SONIC_HOST_SERVICE)_SMDEP_PATHS := $(SPATH)

endif

0 comments on commit 61419f5

Please sign in to comment.