Skip to content

fix!: use OUT_DIR only for cargo publish compatibility#409

Open
RobertMueller2 wants to merge 1 commit intoSatty-org:mainfrom
RobertMueller2:fix_395b
Open

fix!: use OUT_DIR only for cargo publish compatibility#409
RobertMueller2 wants to merge 1 commit intoSatty-org:mainfrom
RobertMueller2:fix_395b

Conversation

@RobertMueller2
Copy link
Member

@RobertMueller2 RobertMueller2 commented Feb 6, 2026

Related to #395

Introduces a feature ci-release which can be used to generate completions to "completions" dir.

Otherwise, in cargo publish scenario, have clap_complete generate these to OUT_DIR. Otherwise cargo publish complains about stuff generated to outside of OUT_DIR.

This needs a modification of the release/flatpak workflows to use this new feature, otherwise packing the completions from the OUT_DIR would become considerably more difficult.

While we're at it, install completions via make install as well. This works well if /usr/local is used as a prefix but is not perfect yet for user home installations.

EDIT: For the release notes: This may need a note for package maintainers, if they're not using the ci-release feature, they may have trouble finding the completions in the artifact directory.

Introduces a feature ci-release which can be used to generate
completions to "completions" dir.

Otherwise, in cargo publish scenario, have clap_complete generate these to
OUT_DIR. Otherwise cargp publish complains about stuff generated to
outside of OUT_DIR.

This needs a modification of the workflow to use this new feature,
otherwise packing the completions becomes considerably more difficult.

While we're at it, install completions via make install as well. This
works well if /usr/local is used as a prefix but is not perfect yet for
user home installations.
@RobertMueller2 RobertMueller2 changed the title fix: use OUT_DIR only for cargo publish compatibility fix!: use OUT_DIR only for cargo publish compatibility Feb 23, 2026
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.

1 participant