Skip to content

Commit 8478c76

Browse files
Copilotjabrown85
andcommitted
Fix non-constant format string error in Go 1.26.0
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
1 parent 1ef28e2 commit 8478c76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platform/files/handle_toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (h *TOMLHandler) ReadAnalyzed(path string, logger log.Logger) (Analyzed, er
4141
// WriteAnalyzed writes the provided analyzed metadata at the provided path.
4242
func (h *TOMLHandler) WriteAnalyzed(path string, analyzedMD *Analyzed, logger log.Logger) error {
4343
logger.Debugf("Run image info in analyzed metadata is: ")
44-
logger.Debugf(encoding.ToJSONMaybe(analyzedMD.RunImage))
44+
logger.Debugf("%s", encoding.ToJSONMaybe(analyzedMD.RunImage))
4545
if err := encoding.WriteTOML(path, analyzedMD); err != nil {
4646
return fmt.Errorf("failed to write analyzed file: %w", err)
4747
}

0 commit comments

Comments
 (0)