Files
cypress/system-tests/scripts/cache-key.sh
Tyler Biethman 4972872a25 chore: Updating system test node modules cache logic to support binary tests (#21187)
* Updating state cache key names to limit improper fallback matches. Sorting output for cache key for cross-arch determinism.

* Trying to normalize cache output

* Lost tracking for this change somehow

* Changing key name to invalidate current cache.

* Tweaking install script

* Tweaking install script again

* Another commit to test existing cache

* Resetting keys for PR

* Whoops, this slipped into the last commit

* Missed one key rename somehow

* Update system-tests/scripts/cache-key.sh

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-04-26 12:02:05 -05:00

17 lines
437 B
Bash
Executable File

#!/bin/bash
# NOTE: do not wrap this script with `yarn run`, `npm run`, etc., they add their own stdout
# cd to this "scripts" directory
cd "$(dirname "${BASH_SOURCE[0]}")"
# Sort glob output, as it can vary based on architecture. LC_ALL=C required for locale-agnostic sort.
file_list=$(ls ../projects/**/{package.json,yarn.lock} | LC_ALL=C sort -f)
contents=''
for t in ${file_list[@]}; do
contents+=$(<$t)
done
echo $contents