spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

create-release-packages.sh cp illegal option --parents on zsh prevents .specify/templates/ to be copied

Open ceppelli opened this issue 1 year ago • 2 comments

Info

Branch: localden/vscode Os: Macos 15.6

Problem

The script ./.github/workflows/scripts/create-release-packages.sh v1.0.0 throws the following exception

Building release packages for v1.0.1
Agents: copilot
Scripts: sh
Building copilot (sh) package...
Copied memory -> .specify
Copied scripts/bash -> .specify/scripts
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory

Solution

Replacing this line

https://github.com/github/spec-kit/blob/f4fcd82920021250292e9ce36da249c5431c0469/.github/workflows/scripts/create-release-packages.sh#L153

with this one

[[ -d templates ]] && { mkdir -p "$SPEC_DIR/templates"; find templates -type f -not -path "templates/commands/*" -not -name "vscode-settings.json" -exec cp {} "$SPEC_DIR"/templates/ ; ; echo "Copied templates -> .specify/templates"; }

solve the problem!!!

ceppelli avatar Nov 11 '25 00:11 ceppelli

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 28 '26 00:07 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Aug 27 '26 01:08 github-actions[bot]