You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2026/05/30 09:05:36 UTC
(doris-cli) branch main updated: fix(release-npm): ship executable binaries; release 0.1.1
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/doris-cli.git
The following commit(s) were added to refs/heads/main by this push:
new 40526ba fix(release-npm): ship executable binaries; release 0.1.1
40526ba is described below
commit 40526babb45915f1845a9d454e39ccb437299b32
Author: Mingyu Chen (Rayner) <yu...@selectdb.com>
AuthorDate: Sat May 30 17:05:30 2026 +0800
fix(release-npm): ship executable binaries; release 0.1.1
The prebuilt platform binary is chmod 0755 when its package is assembled in
the build job, but actions/upload-artifact strips the Unix executable bit,
so the publish job packed a 0644 binary. Platform packages declare no `bin`
entry, so npm does not fix it up on install and the launcher fails with
EACCES. Re-apply 0755 to each platform binary after download, before
npm publish.
0.1.0 shipped with this bug and is immutable, so bump to 0.1.1.
Co-Authored-By: Claude Opus 4.8 (1M context) <no...@anthropic.com>
---
.github/workflows/release-npm.yml | 6 ++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml
index b799d3e..ab1f750 100644
--- a/.github/workflows/release-npm.yml
+++ b/.github/workflows/release-npm.yml
@@ -87,6 +87,12 @@ jobs:
rm -rf "${dest%/}"
mv "$d" "${dest%/}"
done
+ # actions/upload-artifact strips the Unix executable bit, so each
+ # prebuilt binary arrives as 0644 and npm would publish a
+ # non-executable file (the launcher spawns it directly, and platform
+ # packages declare no `bin` entry for npm to chmod on install).
+ # Restore it before the packages are packed.
+ chmod 0755 doriscli-*/bin/*
ls -la
- name: Assemble main package
run: node npm/build-packages.cjs main
diff --git a/Cargo.lock b/Cargo.lock
index 37a7a5d..aa5a253 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -625,7 +625,7 @@ dependencies = [
[[package]]
name = "doriscli"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"anyhow",
"assert_cmd",
diff --git a/Cargo.toml b/Cargo.toml
index d0c3ecc..111cc3d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ resolver = "3"
[package]
name = "doriscli"
-version = "0.1.0"
+version = "0.1.1"
edition = "2021"
description = "Doris CLI — SQL, profiles, and tablet analysis against a Doris kernel"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org