mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-08 15:39:54 -06:00
* 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>
17 lines
437 B
Bash
Executable File
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
|