1
0
mirror of https://github.com/containers/buildah.git synced 2025-04-18 07:04:05 +03:00

Do not capitalize error strings

This fixes "ST1005: error strings should not be capitalized
(staticcheck)" warnings.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2025-03-31 18:24:18 -07:00
parent 444edbee0c
commit b343757b11
3 changed files with 3 additions and 3 deletions

View File

@ -451,7 +451,7 @@ func buildDockerfilesOnce(ctx context.Context, store storage.Store, logger *logr
if options.Target != "" {
stagesTargeted, ok := stages.ThroughTarget(options.Target)
if !ok {
return "", nil, fmt.Errorf("The target %q was not found in the provided Dockerfile", options.Target)
return "", nil, fmt.Errorf("the target %q was not found in the provided Dockerfile", options.Target)
}
stages = stagesTargeted
}

View File

@ -622,7 +622,7 @@ func (s *StageExecutor) runStageMountPoints(mountList []string) (map[string]inte
if strings.Contains(flag, "from") {
tokens := strings.Split(flag, ",")
if len(tokens) < 2 {
return nil, fmt.Errorf("Invalid --mount command: %s", flag)
return nil, fmt.Errorf("invalid --mount command: %s", flag)
}
for _, token := range tokens {
key, val, hasVal := strings.Cut(token, "=")

View File

@ -19,7 +19,7 @@ import (
func importBuilderDataFromImage(ctx context.Context, store storage.Store, systemContext *types.SystemContext, imageID, containerName, containerID string) (*Builder, error) {
if imageID == "" {
return nil, errors.New("Internal error: imageID is empty in importBuilderDataFromImage")
return nil, errors.New("internal error: imageID is empty in importBuilderDataFromImage")
}
storeopts, err := storage.DefaultStoreOptions()