Environment capture.#119
Conversation
4c91261 to
37cebe2
Compare
37cebe2 to
06f0e5e
Compare
f18f36a to
d10dfe3
Compare
d95caca to
d7cf925
Compare
d7cf925 to
bb527dc
Compare
b72d8ff to
88a30ce
Compare
2761c95 to
7e9598f
Compare
510a01c to
56bfd33
Compare
4bc5005 to
23081bc
Compare
23081bc to
22f6320
Compare
There was a problem hiding this comment.
Pull request overview
This PR implements environment variable capture for Swift frontend commands to improve injection reliability. The changes enable the InjectionNext system to preserve and replay the build environment when recompiling injected sources.
Changes:
- Added environment variable capture in the swift-frontend.sh proxy script
- Updated compiler invocation to apply captured environment during recompilation
- Refactored metrics tracking and compilation caching logic
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| SwiftRegex5 | Updated subproject commit reference |
| Sources/InjectionNextC/include/InjectionClient.h | Removed unused COMMANDS_VERSION macro definition |
| Sources/InjectionNext/InjectionNext.swift | Added error handling override and enhanced trace framework condition checks |
| README.md | Added documentation about COMPILATION_CACHE_ENABLE_CACHING incompatibility and /Applications requirement |
| InjectionLite | Updated subproject commit reference |
| App/feedcommands/main.mm | Added environment capture header and buffered write implementation |
| App/InjectionNext/swift-frontend.sh | Modified to capture environment variables and updated version to 2.0 |
| App/InjectionNext/NextCompiler.swift | Added environment field to Compilation struct, refactored metrics tracking, and implemented environment variable application during recompilation |
| App/InjectionNext/MonitorXcode.swift | Changed recompiler to static property and updated comment tense |
| App/InjectionNext/InjectionServer.swift | Enhanced error message with INJECTION_PROJECT_ROOT guidance |
| App/InjectionNext/InjectionNext-Bridging-Header.h | Added InjectionNextSalt.h import |
| App/InjectionNext/InjectionHybrid.swift | Refactored injection timing logic and moved lastInjected tracking to class level |
| App/InjectionNext/Info.plist | Bumped build version |
| App/InjectionNext/FrontendServer.swift | Implemented environment variable parsing and applied captured environment during command processing |
| App/InjectionNext/Experimental.swift | Updated references to use static recompiler and moved lastInjected to InjectionHybrid |
| App/InjectionNext.xcodeproj/project.pbxproj | Added script phase to generate random COMMANDS_VERSION and updated package versions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ffc554a to
de09c67
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 17 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dcdb0bc to
d948427
Compare
d948427 to
47487a0
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 17 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Capturing proxy environment
Mapping macro plugin paths
Bazel macro puin paths.