create-release-packages.sh cp illegal option --parents on zsh prevents .specify/templates/ to be copied
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!!!
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.
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.