Skip to content

Commit

Permalink
Fix builder-integration-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jade-guiton-dd committed Dec 17, 2024
1 parent e8f5c27 commit e80493a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/builder/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ base=$(mktemp -d)
echo "Running the tests in ${base}"

replaces="$base/replaces"
# Get path of all core modules, in sorted order, without the initial dot
core_mods=$(cd ../.. && find . -type f -name "go.mod" -exec dirname {} \; | sort | sed 's/.//')
# Get path of all core modules, in sorted order
core_mods=$(cd ../.. && find . -type f -name "go.mod" -exec dirname {} \; | sort)
echo "replaces:" >> "$replaces"
for mod in $core_mods; do
for mod_path in $core_mods; do
mod=${mod_path#"."} # remove initial dot
echo " - go.opentelemetry.io/collector$mod => \${WORKSPACE_DIR}$mod" >> "$replaces"
done
echo "Wrote replace statements to $replaces"
Expand Down

0 comments on commit e80493a

Please sign in to comment.