Skip to content

Commit 849661e

Browse files
authored
Source verification ensures using the original user in tmp directory (#110)
Closes GH-108
1 parent e4233a7 commit 849661e

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ jobs:
4646
- name: Prepare
4747
run: |
4848
ci/scripts/prepare-${{ matrix.os }}.sh ${{ matrix.postgresql-version }}
49-
- name: Install Apache Arrow Flight SQL adapter
50-
run: |
51-
setup_args=(
52-
"--prefix=/tmp/local"
53-
"-Dbenchmark=true"
54-
"-Dpostgresql_dir=$(pg_config --bindir)/.."
55-
)
56-
if [ ${{ matrix.os }} = "macos" ]; then
57-
setup_args+=("--pkg-config-path=$(brew --prefix libpq)/lib/pkgconfig")
58-
fi
59-
meson setup "${setup_args[@]}" build
60-
meson compile -C build
61-
if [ ${{ matrix.os }} = "ubuntu" ]; then
62-
sudo meson install -C build
63-
else
64-
meson install -C build
65-
fi
6649
- uses: ruby/setup-ruby@v1
6750
with:
6851
ruby-version: ruby

dev/release/verify-rc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ test_source_distribution() {
203203
fi
204204

205205
meson setup \
206-
--prefix="${PWD}/install" \
206+
--prefix="${ARROW_TMPDIR}/install" \
207207
-Dpostgresql_dir="$(pg_config --bindir)/.." \
208208
${ARROW_FLIGHT_SQL_POSTGRESQL_MESON_SETUP_ARGS:-} \
209209
build
@@ -227,6 +227,7 @@ test_source_distribution() {
227227
Linux-/usr/*)
228228
if type sudo > /dev/null 2>&1; then
229229
sudo meson install -C build
230+
sudo chown -R "${USER}:" "${ARROW_TMPDIR}/install"
230231
else
231232
meson install -C build
232233
fi

0 commit comments

Comments
 (0)