mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ci_submodule_paths_v3.0' into 'release/v3.0'
CI - Fix the parsing of submodule paths (backport v3.0) See merge request idf/esp-idf!4571
This commit is contained in:
commit
8cc4f17ddf
@ -18,7 +18,7 @@ variables:
|
|||||||
GET_SOURCES_ATTEMPTS: "10"
|
GET_SOURCES_ATTEMPTS: "10"
|
||||||
ARTIFACT_DOWNLOAD_ATTEMPTS: "10"
|
ARTIFACT_DOWNLOAD_ATTEMPTS: "10"
|
||||||
|
|
||||||
# We use get_sources.sh script to fetch the submodules and/or re-fetch the repo
|
# We use get-full-sources.sh script to fetch the submodules and/or re-fetch the repo
|
||||||
# if it was corrupted (if submodule update fails this can happen)
|
# if it was corrupted (if submodule update fails this can happen)
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
GIT_SUBMODULE_STRATEGY: none
|
GIT_SUBMODULE_STRATEGY: none
|
||||||
|
@ -54,13 +54,15 @@ git submodule init
|
|||||||
# 2
|
# 2
|
||||||
# Replacing each submodule URL of the current repository
|
# Replacing each submodule URL of the current repository
|
||||||
# according to the one found in the MIRRORLIST
|
# according to the one found in the MIRRORLIST
|
||||||
|
|
||||||
# SED parses the strings like:
|
|
||||||
#
|
#
|
||||||
#-b991c67c1d91574ef22336cc3a5944d1e63230c9 roms/ipxe
|
# Selecting paths among lines:
|
||||||
#b991c67c1d91574ef22336cc3a5944d1e63230c9 roms/ipxe (v1.0.0-2388-gb991c67)
|
# ...
|
||||||
#
|
#submodule.components/esp32/lib.path
|
||||||
for SUBPATH in $(git submodule status | sed -E 's/.*[[:space:]](.*)([[:space:]].*|$)/\1/')
|
#submodule.components/esp32/lib.url
|
||||||
|
#submodule.components/esptool_py/esptool.path
|
||||||
|
#submodule.components/esptool_py/esptool.url
|
||||||
|
#...
|
||||||
|
for SUBPATH in $(git config -f .gitmodules --list --name-only | grep "\.path" | sed 's/^submodule\.\([^ ]*\)\.path$/\1/')
|
||||||
do
|
do
|
||||||
SUBMIRROR=$(join -o"2.2" <(echo ${SUBPATH}) <(sort ${MIRRORLIST}))
|
SUBMIRROR=$(join -o"2.2" <(echo ${SUBPATH}) <(sort ${MIRRORLIST}))
|
||||||
[ ${SUBMIRROR} ] || continue
|
[ ${SUBMIRROR} ] || continue
|
||||||
|
Loading…
Reference in New Issue
Block a user