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

`update-agent-context.sh` seems to be failing on macOS

Open vzarytovskii opened this issue 1 year ago • 7 comments

When executed by claude, it produces the following:

⏺ Bash(./scripts/update-agent-context.sh claude)
  ⎿  === Updating agent context files for feature 001-create-a-console ===               
     Updating Claude Code context file: /Users/u/code/project/CLAUDE.md
     Creating new Claude Code context file...
     ✅ Claude Code context file updated successfully

     Summary of changes:

     Usage: ./scripts/update-agent-context.sh [claude|gemini|copilot]
       - No argument: Update all existing agent context files
       - claude: Update only CLAUDE.md
       - gemini: Update only GEMINI.md
       - copilot: Update only .github/copilot-instructions.md
     sed: 1: "s/^**Language\/Version* ...": RE error: repetition-operator operand invalid
     sed: 1: "s/^**Primary Dependenci ...": RE error: repetition-operator operand invalid
     sed: 1: "s/^**Testing**: //
     ": RE error: repetition-operator operand invalid
     sed: 1: "s/^**Storage**: //
     ": RE error: repetition-operator operand invalid
     sed: 1: "s/^**Project Type**: //
     ": RE error: repetition-operator operand invalid

I presume that's because macOS' sed is not GNU sed?

vzarytovskii avatar Sep 10 '25 17:09 vzarytovskii

I have the same issue, on Archlinux...

TituxMetal avatar Sep 11 '25 15:09 TituxMetal

https://github.com/github/spec-kit/pull/161

amondnet avatar Sep 12 '25 00:09 amondnet

same issue

guiguito avatar Sep 13 '25 16:09 guiguito

+1

jpchauvel avatar Sep 19 '25 00:09 jpchauvel

+1

adshrc avatar Sep 19 '25 06:09 adshrc

#161 does not fix the issues on macOS, there is still this problem: sed: 1: "s/\[EXTRACTED FROM ALL ...": bad flag in substitute command: 'N'

adshrc avatar Sep 19 '25 07:09 adshrc

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 Apr 03 '26 14:04 github-actions[bot]