Skip to content

Commit a1fdb64

Browse files
authored
duckdb: replace hash to 2.0.0 (#10709)
2.0 is released, we can use the tag now --------- Signed-off-by: Mikhail Kot <mikhail@spiraldb.com>
1 parent d270200 commit a1fdb64

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎scripts/duckdb-r2-prepare.sh‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@
1212
set -eu
1313

1414
if [ "$RELEASE" = "true" ]; then
15-
echo "Mirroring DuckDB release ${REF_DIR}/${ARCHIVE}"
16-
curl -fSL --retry 3 -o "$ARCHIVE" \
17-
"https://github.com/duckdb/duckdb/releases/download/${REF_DIR}/${ARCHIVE}"
15+
suffix="${ARCHIVE#libduckdb-}"
16+
suffix="${suffix%.zip}"
17+
upstream="duckdb-shared-libs-${suffix}.tar.gz"
18+
19+
echo "Mirroring DuckDB release ${REF_DIR}/${upstream} as ${ARCHIVE}"
20+
curl -fSL --retry 3 -o "$upstream" \
21+
"https://github.com/duckdb/duckdb/releases/download/${REF_DIR}/${upstream}"
22+
23+
stage="stage"
24+
mkdir -p "$stage"
25+
tar -xzf "$upstream" -C "$stage"
26+
( cd "$stage" && zip -r "../${ARCHIVE}" . )
1827
else
1928
echo "Building DuckDB commit ${REF_DIR} from source"
2029

‎vortex-duckdb/build.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const DUCKDB_RELEASES_URL: &str = "https://ci-builds.vortex.dev";
2323

2424
const DUCKDB_SOURCE_RELEASE_URL: &str = "https://github.com/duckdb/duckdb/archive/refs/tags";
2525
const DUCKDB_SOURCE_COMMIT_URL: &str = "https://github.com/duckdb/duckdb/archive";
26-
const DEFAULT_DUCKDB_VERSION: &str = "5bf940c1318234d360aa98d476fbcd7762997c2f";
26+
const DEFAULT_DUCKDB_VERSION: &str = "v2.0.0";
2727

2828
const BUILD_ARTIFACTS: [&str; 3] = ["libduckdb.dylib", "libduckdb.so", "libduckdb_static.a"];
2929
const BUILD_MARKER: &str = ".vx-build-complete";

0 commit comments

Comments
 (0)