feat(plugin-cli): refresh bundled Go SDK

This commit is contained in:
t8y2 committed 2026-09-14 22:37:57 +08:00
1 parent 5918414127
commit e84e49fa28
15 files changed
+28 -27

No files matched your search

+2 -2
View File
@@ -7,9 +7,9 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: "Plugin CLI version to publish, for example 0.1.3" description: "Plugin CLI version to publish, for example 0.1.4"
required: true required: true
default: "0.1.3" default: "0.1.4"
npm-tag: npm-tag:
description: "npm distribution tag" description: "npm distribution tag"
required: true required: true
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-darwin-arm64", "name": "@dbx-app/plugin-cli-darwin-arm64",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for darwin arm64", "description": "Precompiled DBX Plugin CLI binary for darwin arm64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-darwin-x64", "name": "@dbx-app/plugin-cli-darwin-x64",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for darwin x64", "description": "Precompiled DBX Plugin CLI binary for darwin x64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-linux-arm64-gnu", "name": "@dbx-app/plugin-cli-linux-arm64-gnu",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for linux arm64", "description": "Precompiled DBX Plugin CLI binary for linux arm64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-linux-x64-gnu", "name": "@dbx-app/plugin-cli-linux-x64-gnu",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for linux x64", "description": "Precompiled DBX Plugin CLI binary for linux x64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-win32-arm64", "name": "@dbx-app/plugin-cli-win32-arm64",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for win32 arm64", "description": "Precompiled DBX Plugin CLI binary for win32 arm64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli-win32-x64", "name": "@dbx-app/plugin-cli-win32-x64",
"version": "0.1.3", "version": "0.1.4",
"description": "Precompiled DBX Plugin CLI binary for win32 x64", "description": "Precompiled DBX Plugin CLI binary for win32 x64",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
+7 -7
View File
@@ -1,6 +1,6 @@
{ {
"name": "@dbx-app/plugin-cli", "name": "@dbx-app/plugin-cli",
"version": "0.1.3", "version": "0.1.4",
"description": "Create and package DBX plugins without compiling the DBX plugin CLI", "description": "Create and package DBX plugins without compiling the DBX plugin CLI",
"keywords": [ "keywords": [
"cli", "cli",
@@ -34,12 +34,12 @@
"prepublishOnly": "npm run build && npm test" "prepublishOnly": "npm run build && npm test"
}, },
"optionalDependencies": { "optionalDependencies": {
"@dbx-app/plugin-cli-darwin-arm64": "0.1.3", "@dbx-app/plugin-cli-darwin-arm64": "0.1.4",
"@dbx-app/plugin-cli-darwin-x64": "0.1.3", "@dbx-app/plugin-cli-darwin-x64": "0.1.4",
"@dbx-app/plugin-cli-linux-arm64-gnu": "0.1.3", "@dbx-app/plugin-cli-linux-arm64-gnu": "0.1.4",
"@dbx-app/plugin-cli-linux-x64-gnu": "0.1.3", "@dbx-app/plugin-cli-linux-x64-gnu": "0.1.4",
"@dbx-app/plugin-cli-win32-arm64": "0.1.3", "@dbx-app/plugin-cli-win32-arm64": "0.1.4",
"@dbx-app/plugin-cli-win32-x64": "0.1.3" "@dbx-app/plugin-cli-win32-x64": "0.1.4"
}, },
"engines": { "engines": {
"node": ">=18.18.0" "node": ">=18.18.0"
+1 -1
View File
@@ -119,7 +119,7 @@ dependencies = [
[[package]] [[package]]
name = "dbx-plugin-cli" name = "dbx-plugin-cli"
version = "0.1.3" version = "0.1.4"
dependencies = [ dependencies = [
"dbx-plugin-packager", "dbx-plugin-packager",
"semver", "semver",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "dbx-plugin-cli" name = "dbx-plugin-cli"
version = "0.1.3" version = "0.1.4"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
description = "Scaffold and package DBX plugins" description = "Scaffold and package DBX plugins"
+1 -1
View File
@@ -1825,7 +1825,7 @@ mod tests {
let workflow = std::fs::read_to_string(directory.join(".github/workflows/plugin-release.yml")).unwrap(); let workflow = std::fs::read_to_string(directory.join(".github/workflows/plugin-release.yml")).unwrap();
assert!(!workflow.contains("signing-key-id")); assert!(!workflow.contains("signing-key-id"));
assert!(!workflow.contains("DBX_PLUGIN_SIGNING_KEY")); assert!(!workflow.contains("DBX_PLUGIN_SIGNING_KEY"));
assert!(workflow.contains("plugin-cli-version: 0.1.3")); assert!(workflow.contains("plugin-cli-version: 0.1.4"));
assert!(!workflow.contains("sdk-ref:")); assert!(!workflow.contains("sdk-ref:"));
match template { match template {
@@ -15,4 +15,4 @@ jobs:
package-command: dbx-plugin package . package-command: dbx-plugin package .
package-path: dist/*.dbxp package-path: dist/*.dbxp
metadata-path: dist/*.artifact.json metadata-path: dist/*.artifact.json
plugin-cli-version: 0.1.3 plugin-cli-version: 0.1.4
@@ -15,5 +15,5 @@ jobs:
package-command: dbx-plugin package . package-command: dbx-plugin package .
package-path: dist/*.dbxp package-path: dist/*.dbxp
metadata-path: dist/*.artifact.json metadata-path: dist/*.artifact.json
plugin-cli-version: 0.1.3 plugin-cli-version: 0.1.4
build-matrix: '{"include":[{"runner":"ubuntu-24.04","target":"universal"}]}' build-matrix: '{"include":[{"runner":"ubuntu-24.04","target":"universal"}]}'
+6 -6
View File
@@ -356,22 +356,22 @@ importers:
packages/plugin-cli: packages/plugin-cli:
optionalDependencies: optionalDependencies:
'@dbx-app/plugin-cli-darwin-arm64': '@dbx-app/plugin-cli-darwin-arm64':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-darwin-arm64 version: link:../plugin-cli-darwin-arm64
'@dbx-app/plugin-cli-darwin-x64': '@dbx-app/plugin-cli-darwin-x64':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-darwin-x64 version: link:../plugin-cli-darwin-x64
'@dbx-app/plugin-cli-linux-arm64-gnu': '@dbx-app/plugin-cli-linux-arm64-gnu':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-linux-arm64-gnu version: link:../plugin-cli-linux-arm64-gnu
'@dbx-app/plugin-cli-linux-x64-gnu': '@dbx-app/plugin-cli-linux-x64-gnu':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-linux-x64-gnu version: link:../plugin-cli-linux-x64-gnu
'@dbx-app/plugin-cli-win32-arm64': '@dbx-app/plugin-cli-win32-arm64':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-win32-arm64 version: link:../plugin-cli-win32-arm64
'@dbx-app/plugin-cli-win32-x64': '@dbx-app/plugin-cli-win32-x64':
specifier: 0.1.3 specifier: 0.1.4
version: link:../plugin-cli-win32-x64 version: link:../plugin-cli-win32-x64
packages/plugin-cli-darwin-arm64: {} packages/plugin-cli-darwin-arm64: {}
+2 -1
View File
@@ -81,7 +81,8 @@ try {
process.platform === "win32" ? "dbx-plugin.cmd" : "dbx-plugin", process.platform === "win32" ? "dbx-plugin.cmd" : "dbx-plugin",
); );
const version = run(command, ["--version"], { cwd: installDirectory, capture: true }); const version = run(command, ["--version"], { cwd: installDirectory, capture: true });
if (!version.stdout.includes("dbx-plugin 0.1.3")) { const expectedVersion = JSON.parse(readFileSync(join(repositoryRoot, "packages/plugin-cli/package.json"), "utf8")).version;
if (version.stdout.trim() !== `dbx-plugin ${expectedVersion}`) {
throw new Error(`Unexpected installed CLI version output: ${version.stdout.trim()}`); throw new Error(`Unexpected installed CLI version output: ${version.stdout.trim()}`);
} }