Skip to content

build(fix): harden shell and installer reruns - #44

Open
mcclayton wants to merge 3 commits into
mainfrom
codex/cleanup-installer-idempotency
Open

build(fix): harden shell and installer reruns#44
mcclayton wants to merge 3 commits into
mainfrom
codex/cleanup-installer-idempotency

Conversation

@mcclayton

Copy link
Copy Markdown
Owner

Summary

  • Split shared shell startup into .shell_common so zsh no longer sources the full Bash rc file and trips Bash-only bindings.
  • Make repeated installer runs safer by deduping managed appended lines, preserving IFS in logging/PATH helpers, guarding asdf plugin adds, and fixing command-substitution execution bugs.
  • Add regression coverage for zsh startup, idempotent line appends, and asdf plugin installation behavior.

Test plan

  • ./test.sh

@mcclayton

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd05c6a030

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/macsetup/backup.sh Outdated
@mcclayton

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83fb855b3a

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/macsetup/backup.sh
Comment on lines +104 to +105
if grep -Fqx "$marker_line" "$file"; then
continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Refresh existing managed blocks instead of skipping them

When a managed block already exists, this helper now skips the entire write based only on the static marker, so reruns cannot update dynamic content passed by callers. For example, rerunning the Git section after choosing a different SSH key name builds a new IdentityFile $KEY_PATH, but the existing # Git SSH (Added by MacSetup) marker makes this continue, leaving ~/.ssh/config pointing at the old key while the section still reports success; the same stale-block behavior affects generated Postgres paths after version changes.

Useful? React with 馃憤聽/ 馃憥.

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