diff options
author | 2024-12-18 17:50:43 +0900 | |
---|---|---|
committer | 2024-12-18 17:57:50 +0900 | |
commit | f5ed2beb016b3932e58cd02e0f16fb7b0a28028c (patch) | |
tree | 24a03625018420ce9e68af7efa234823d50a4080 /android/namespace.go | |
parent | 5d42cdf1a40e5478c72d976852ded5b793692ce1 (diff) |
Remove non-constant format string in soong
go 1.24 does not allow non-constant format string.
Replace them to use non-formated functions or constant strings.
Bug: na
Test: go test -run ^TestPartialCompile$ android/soong/android
Change-Id: I83b2e53c2a01099fe9e8697876b0b4097ac88a7b
Diffstat (limited to 'android/namespace.go')
-rw-r--r-- | android/namespace.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/namespace.go b/android/namespace.go index 8b3ebc4d5..9ba502514 100644 --- a/android/namespace.go +++ b/android/namespace.go @@ -332,7 +332,7 @@ func (r *NameResolver) MissingDependencyError(depender string, dependerNamespace if isAbs { // if the user gave a fully-qualified name, we don't need to look for other // modules that they might have been referring to - return fmt.Errorf(text) + return fmt.Errorf("%s", text) } // determine which namespaces the module can be found in @@ -368,7 +368,7 @@ func (r *NameResolver) MissingDependencyError(depender string, dependerNamespace text += fmt.Sprintf("\nOr did you mean %q?", guess) } - return fmt.Errorf(text) + return fmt.Errorf("%s", text) } func (r *NameResolver) GetNamespace(ctx blueprint.NamespaceContext) blueprint.Namespace { |