File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ install_framework() {
9292 echo " Installing packs for: ${framework_path} "
9393
9494 # Find all qlpack.yml files under this framework and install their packs
95- # Exclude .codeql cache directories which contain cached pack dependencies
96- find " ${REPO_ROOT} /${framework_path} " -name " qlpack.yml " -not -path " */.codeql/* " -type f | sort | while read -r qlpack_file; do
95+ # Exclude .codeql cache directories which contain cached pack dependencies by pruning them
96+ find " ${REPO_ROOT} /${framework_path} " -name .codeql -type d -prune -o -name " qlpack.yml " -type f -print | sort | while read -r qlpack_file; do
9797 local pack_dir
9898 pack_dir=$( dirname " ${qlpack_file} " )
9999 # Use relative path for cleaner output
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ set -euo pipefail
2424# #
2525# # Additionally updates:
2626# # - Internal dependency references within qlpack.yml files
27- # # that reference other packs in this repository (e.g., ^ X.Y.Z constraints ).
27+ # # that reference other packs in this repository (exact X.Y.Z versions ).
2828# # - qlt.conf.json (CodeQLCLI, CodeQLStandardLibrary, CodeQLCLIBundle)
2929# # using the base version (X.Y.Z) derived by stripping any pre-release suffix.
3030# #
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ upgrade_framework() {
9292 echo " Upgrading packs for: ${framework_path} "
9393
9494 # Find all qlpack.yml files under this framework and upgrade their packs
95- # Exclude .codeql cache directories which contain cached pack dependencies
96- find " ${REPO_ROOT} /${framework_path} " -name " qlpack.yml " -not -path " */.codeql/* " -type f | sort | while read -r qlpack_file; do
95+ # Exclude .codeql cache directories which contain cached pack dependencies by pruning them
96+ find " ${REPO_ROOT} /${framework_path} " -path ' */.codeql ' -prune -o -name ' qlpack.yml ' -type f -print | sort | while read -r qlpack_file; do
9797 local pack_dir
9898 pack_dir=$( dirname " ${qlpack_file} " )
9999 # Use relative path for cleaner output
You can’t perform that action at this time.
0 commit comments