Skip to content

service/s3 typo in api_client.go results in undefined: presignedurlcust.AddAsIsPresigingMiddleware #2529

Closed
@tonygooldrr

Description

Describe the bug

I cannot compile using the current SDK because of what appears to be a typo. "Presiging" should be "Presigning".

Expected Behavior

The project compiles.

Current Behavior

The project fails to compile with the following error:

/go/pkg/mod/github.com/aws/aws-sdk-go-v2/service/[email protected]/api_client.go:855:25: undefined: presignedurlcust.AddAsIsPresigingMiddleware

Reproduction Steps

Attempt a go build on the following main.go:

package main

import (
	"context"
	"log"

	"github.com/aws/aws-sdk-go-v2/config"
	"github.com/aws/aws-sdk-go-v2/service/s3"
)

func main() {
	cfg, _ := config.LoadDefaultConfig(context.Background())
	client := s3.NewFromConfig(cfg)
	if client != nil {
		log.Println("Initialized client")
	}
}

Possible Solution

Fix the typo so it reads presignedurlcust.AddAsIsPresigningMiddleware.

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2/config v1.27.5
github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1

Compiler and Version used

go version go1.22.0 darwin/arm64

Operating System and version

macOS 14.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p0This issue is the highest priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions