Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74674107 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Only write release config files if they've changed" into main

parents 274b3c95 2530b446
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ bootstrap_go_package {
        "golang-protobuf-reflect-protoreflect",
        "golang-protobuf-runtime-protoimpl",
        "soong-cmd-release_config-proto",
        "blueprint-pathtools",
    ],
    srcs: [
        "flag_artifact.go",
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import (
	"slices"
	"strings"

	"github.com/google/blueprint/pathtools"
	"google.golang.org/protobuf/encoding/prototext"
	"google.golang.org/protobuf/proto"
)
@@ -101,7 +102,7 @@ func WriteFormattedMessage(path, format string, message proto.Message) (err erro
	if err != nil {
		return err
	}
	return os.WriteFile(path, data, 0644)
	return pathtools.WriteFileIfChanged(path, data, 0644)
}

// Read a message from a file.