diff --git a/netutils/cjson/CMakeLists.txt b/netutils/cjson/CMakeLists.txt index 83a6475cde7..729dbc6190f 100644 --- a/netutils/cjson/CMakeLists.txt +++ b/netutils/cjson/CMakeLists.txt @@ -23,7 +23,8 @@ if(CONFIG_NETUTILS_CJSON) if(NOT CONFIG_NETUTILS_CJSON_URL) - set(CONFIG_NETUTILS_CJSON_URL "https://github.com/DaveGamble/cJSON/archive") + set(CONFIG_NETUTILS_CJSON_URL + "https://github.com/DaveGamble/cJSON/archive/refs/tags") endif() if(NOT CONFIG_NETUTILS_CJSON_VERSION) diff --git a/netutils/cjson/Kconfig b/netutils/cjson/Kconfig index 4a360de6ad7..05773f15762 100644 --- a/netutils/cjson/Kconfig +++ b/netutils/cjson/Kconfig @@ -14,7 +14,7 @@ if NETUTILS_CJSON config NETUTILS_CJSON_URL string "URL where cJSON library can be downloaded" - default "https://github.com/DaveGamble/cJSON/archive" + default "https://github.com/DaveGamble/cJSON/archive/refs/tags" config NETUTILS_CJSON_VERSION string "Version number" diff --git a/netutils/cjson/Makefile b/netutils/cjson/Makefile index d8993373d2b..050e5cf8692 100644 --- a/netutils/cjson/Makefile +++ b/netutils/cjson/Makefile @@ -28,7 +28,7 @@ include $(APPDIR)/Make.defs WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'} -CONFIG_NETUTILS_CJSON_URL ?= "https://github.com/DaveGamble/cJSON/archive" +CONFIG_NETUTILS_CJSON_URL ?= "https://github.com/DaveGamble/cJSON/archive/refs/tags" CONFIG_NETUTILS_CJSON_VERSION ?= "1.7.10" CJSON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_NETUTILS_CJSON_VERSION)))