We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1d27fe commit f81f363Copy full SHA for f81f363
1 file changed
helm-git-plugin.sh
@@ -125,8 +125,20 @@ helm_package() {
125
helm_dependency_update() {
126
_target_path=$1
127
128
- # shellcheck disable=SC2086
129
- "$HELM_BIN" dependency update $helm_args --skip-refresh "$_target_path" >/dev/null
+ # Prevent infinity loop when calling helm-git plugin
+ if [ "$HELM_GIT_DEPENDENCY_CIRCUITBREAKER" = 1 ]; then
130
+ # shellcheck disable=SC2086
131
+ "$HELM_BIN" dependency update $helm_args --skip-refresh "$_target_path" >/dev/null
132
+ ret=$?
133
+ else
134
135
+ "$HELM_BIN" dependency update $helm_args "$_target_path" >/dev/null
136
137
+ export HELM_GIT_DEPENDENCY_CIRCUITBREAKER=1
138
+ fi
139
+
140
+ # forward return code
141
+ return $ret
142
}
143
144
# helm_index(target_path, base_url)
0 commit comments