Skip to content

Conversation

@helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Dec 3, 2025

Use an io.MultiWriter to capture the OCI spec as written to the config.json file that is provided to runc so it can be logged, and avoid needing to marshal the spec twice.

Also, add a FORCE target to the Makefile to always run the go build recipe for Go binaries.
This fixes a bug where make will not rebuild the binaries and instead make clean must be called to remove them before building.

See: www.gnu.org/software/make/manual/html_node/Force-Targets.html

Use an `io.MultiWriter` to capture the OCI spec as written to the
`config.json` file that is provided to runc so it can be logged, and
avoid needing to marshal the spec twice.

Also, add a `FORCE` target to the Makefile to always run the `go build`
recipe for Go binaries.
This fixes a bug where make will not rebuild the binaries and instead
`make clean` must be called to remove them before building.

See: www.gnu.org/software/make/manual/html_node/Force-Targets.html

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy requested a review from a team as a code owner December 3, 2025 21:18
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy merged commit 4cc249f into microsoft:main Dec 4, 2025
17 checks passed
@helsaawy helsaawy deleted the oci-config-log branch December 4, 2025 18:01
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.

3 participants