Skip to content

fix(cli): use the pack output directory in the suggested release command - #50

Merged
heoblitz merged 3 commits into
toss:mainfrom
hyxx-su:fix/plugin-pack-release-paths
Nov 23, 2026
Merged

heoblitz merged 3 commits into
toss:mainfrom
hyxx-su:fix/plugin-pack-release-paths

Conversation

@hyxx-su

@hyxx-su hyxx-su commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

necto-cli plugin pack dist --output releases writes the ZIP and manifest to releases/, but the suggested gh release create command looks for both in the current directory. If an older build is still there, the command can pick up the wrong files.

Print the paths where pack wrote the two assets. An explicit output directory gets absolute paths. The default keeps them short with ./. Both use the CLI's existing shell quoting so a directory such as Author's releases stays part of a single argument.

Changelog

necto-cli plugin pack --output now includes the selected output directory in its suggested release command.

Test Plan

  • Reproduced on main with the built-in shell-demo panel and --output "Author's releases". Both files existed in that folder, and neither path printed in the release command resolved from the working directory.
  • Ran DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer script/test swift on macOS 27.0 with Xcode 26.5. All three suites passed (200 root package tests, 285 Mac package tests and 2 SDK consumer tests). The new CLI process test lets /bin/sh parse the two asset arguments and checks them against the files on disk.
  • Checked the built CLI with default, relative and absolute output directories and a plugin ID starting with a hyphen. Each hint yielded two readable file arguments. With --quiet, the CLI omitted the hint.

GitHub release publication and device/USB testing were not run. GitHub CLI reserves # in an asset argument for a display label, so paths containing that character still have that limitation.

@heoblitz heoblitz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

@heoblitz
heoblitz merged commit bc40434 into toss:main Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants