Introduce a force update value for reloading cache #82
This commit is contained in:
parent
9b3b2b590c
commit
9ecdf39b43
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ log "Creating cache key..."
|
||||||
normalized_versioned_packages="$(normalize_package_list "${versioned_packages}")"
|
normalized_versioned_packages="$(normalize_package_list "${versioned_packages}")"
|
||||||
log "- Normalized package list is '${normalized_versioned_packages}'."
|
log "- Normalized package list is '${normalized_versioned_packages}'."
|
||||||
|
|
||||||
value="${normalized_versioned_packages} @ ${version}"
|
# Forces an update in cases where an accidental breaking change was introduced
|
||||||
|
# and a global cache reset is required.
|
||||||
|
force_update_inc="0"
|
||||||
|
|
||||||
|
value="${normalized_versioned_packages} @ ${version} ${force_update_inc}"
|
||||||
log "- Value to hash is '${value}'."
|
log "- Value to hash is '${value}'."
|
||||||
|
|
||||||
key="$(echo "${value}" | md5sum | cut -f1 -d' ')"
|
key="$(echo "${value}" | md5sum | cut -f1 -d' ')"
|
||||||
|
|
Loading…
Reference in a new issue