Skip to content

chore: add build environment update script - #909

Closed
sungness wants to merge 1 commit into
readium:developfrom
sungness:macos-port/readium-3.9.0
Closed

sungness wants to merge 1 commit into
readium:developfrom
sungness:macos-port/readium-3.9.0

Conversation

@sungness

Copy link
Copy Markdown

Add a repository-local script to generate BUILD_ENVIRONMENT.md.

The manifest records:

  • toolchain and SDK versions
  • current branch and commit
  • origin and upstream remotes
  • Swift Package dependency information

No absolute local filesystem paths are included.

Copilot AI lite review requested due to automatic review settings September 28, 2026 05:54

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

Unresolved correctness and privacy issues include potential publication of credentials in remote URLs.

Review effort: Lite
Findings: 1 High severity · 3 Medium severity

Open (4)
What changed in this PR

Adds a repository-local script and generated manifest documenting build environment and Swift Package metadata.

Changes:

  • Collects toolchain, SDK, Git, and dependency information.
  • Writes BUILD_ENVIRONMENT.md atomically.
File Summary
scripts/​update_build_environment.sh Manifest generation needs fixes for newline handling, linked worktrees, local-path remotes, and credential redaction.
BUILD_ENVIRONMENT.md Generated build environment snapshot.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +65 to +66
print -- "- origin:$(git_value "${PROJECT_ROOT}" config --get remote.origin.url)"
print -- "- upstream:$(git_value "${PROJECT_ROOT}" config --get remote.upstream.url)"
local repository="$1"
shift

if [[ -d "${repository}/.git" ]]; then
print -- "## 工具版本"
print --
print -- "- macOS:$(command_version sw_vers sw_vers -productVersion)"
print -- "- Xcode:$(command_version xcodebuild xcodebuild -version | tr '\\n' '; ' | sed 's/; $//')"
Comment on lines +65 to +66
print -- "- origin:$(git_value "${PROJECT_ROOT}" config --get remote.origin.url)"
print -- "- upstream:$(git_value "${PROJECT_ROOT}" config --get remote.upstream.url)"
@sungness

Copy link
Copy Markdown
Author

Sorry, I make mistakes

@sungness sungness closed this Sep 28, 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.

2 participants