aws / aws-sdk-go-v2

AWS SDK for the Go programming language.
https://aws.github.io/aws-sdk-go-v2/docs/
Apache License 2.0
2.68k stars 651 forks source link

S3 `ReplicationRuleFilter` and `LifecycleRuleFilter` change causes compilation errors #2833

Closed ewbankkit closed 1 month ago

ewbankkit commented 1 month ago

Acknowledgements

Describe the bug

The change to S3 ReplicationRuleFilter and LifecycleRuleFilter introduced in https://github.com/aws/aws-sdk-go-v2/pull/2831 causes compilation errors:

Error: internal/service/s3/bucket_lifecycle_configuration.go:716:95: undefined: types.LifecycleRuleFilterMemberAnd
Error: internal/service/s3/bucket_lifecycle_configuration.go:747:74: undefined: types.LifecycleRuleFilterMemberTag

Regression Issue

Expected Behavior

CHANGELOG entry notes a breaking change.

Current Behavior

Compilation error.

Reproduction Steps

import (
    "github.com/aws/aws-sdk-go-v2/service/s3/types"
)

    result := &types.LifecycleRuleFilterMemberAnd{
        Value: types.LifecycleRuleAndOperator{},
    }

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

% grep 'service/s3' go.mod 
    github.com/aws/aws-sdk-go-v2/service/s3 v1.65.3
    github.com/aws/aws-sdk-go-v2/service/s3control v1.49.2
    github.com/aws/aws-sdk-go-v2/service/s3outposts v1.28.2

Compiler and Version used

go 1.23.2

Operating System and version

macos

lucix-aws commented 1 month ago

I've updated the release notes to explicitly note the break: https://github.com/aws/aws-sdk-go-v2/commit/f46593cf8fbabc48da6f6c2517a818715211d099

github-actions[bot] commented 1 month ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.