Skip to content

Commit f2d5045

Browse files
committed
fix: update musl detection logic
1 parent 95ecc81 commit f2d5045

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ endif
426426

427427
# Detect musl libc (Alpine Linux)
428428
ifeq ($(PLATFORM),linux)
429-
ifeq ($(shell cat /etc/alpine-release 2>/dev/null && echo yes),yes)
429+
ifeq ($(shell test -f /etc/alpine-release && echo yes),yes)
430430
VECTOR_PLATFORM := linux-musl
431431
endif
432432
endif

test/e2e.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ TEST(memory_version) {
134134

135135
TEST(load_vector) {
136136
// Strip file extension — load_extension() appends it automatically
137-
char path[512];
137+
char path[1024];
138138
snprintf(path, sizeof(path), "%s", vector_lib);
139139
char *dot = strrchr(path, '.');
140140
char *slash = strrchr(path, '/');
141141
if (dot && (!slash || dot > slash)) *dot = '\0';
142142

143-
char sql[512];
143+
char sql[1100];
144144
snprintf(sql, sizeof(sql), "SELECT load_extension('%s');", path);
145145
ASSERT_SQL_OK(db, sql);
146146

0 commit comments

Comments
 (0)