Skip to content

Commit

Permalink
Merge pull request aws#992 from aws/xmlDecoderFixes
Browse files Browse the repository at this point in the history
XML deserialization fixes and smithy-go dependency changes
  • Loading branch information
skmcgrail authored Dec 22, 2020
2 parents 15e052d + cd49e0c commit 4947df4
Show file tree
Hide file tree
Showing 10,769 changed files with 82,720 additions and 61,366 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ matrix:
- JAVA_TOOL_OPTIONS="-Xmx1g"
before_script:
- rm -rf /tmp/smithy-go
- git clone https://github.com/awslabs/smithy-go /tmp/smithy-go
- git clone https://github.com/aws/smithy-go /tmp/smithy-go
- pushd /tmp/smithy-go/codegen
- ./gradlew clean publishToMavenLocal -Plog-tests
- popd
Expand All @@ -53,7 +53,7 @@ matrix:
- JAVA_TOOL_OPTIONS="-Xmx1g"
before_script:
- rm -rf /tmp/smithy-go
- git clone https://github.com/awslabs/smithy-go /tmp/smithy-go
- git clone https://github.com/aws/smithy-go /tmp/smithy-go
- pushd /tmp/smithy-go/codegen
- ./gradlew clean publishToMavenLocal -Plog-tests
- popd
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ gen-repo-mod-replace:

gen-mod-replace-smithy:
cd ./internal/repotools/cmd/eachmodule \
&& go run . "go mod edit -replace github.com/awslabs/smithy-go=${SMITHY_GO_SRC}"
&& go run . "go mod edit -replace github.com/aws/smithy-go=${SMITHY_GO_SRC}"

gen-mod-dropreplace-smithy:
cd ./internal/repotools/cmd/eachmodule \
&& go run . "go mod edit -dropreplace github.com/awslabs/smithy-go"
&& go run . "go mod edit -dropreplace github.com/aws/smithy-go"

gen-aws-ptrs:
cd aws && go generate
Expand Down
4 changes: 2 additions & 2 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package aws
import (
"net/http"

"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
)

// HTTPClient provides the interface to provide custom HTTPClients. Generally
Expand Down
2 changes: 1 addition & 1 deletion aws/from_ptr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aws/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"text/template"

"github.com/awslabs/smithy-go/ptr"
"github.com/aws/smithy-go/ptr"
)

func main() {
Expand Down Expand Up @@ -44,7 +44,7 @@ var ptrTmpl = template.Must(template.New("ptrTmpl").Parse(`
package aws
import (
"github.com/awslabs/smithy-go/ptr"
"github.com/aws/smithy-go/ptr"
{{- range $_, $import := $.Imports }}
"{{ $import.Path }}"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"context"

"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

// RegisterServiceMetadata registers metadata about the service and operation into the middleware context
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

func TestServiceMetadataProvider(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions aws/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/aws/aws-sdk-go-v2/internal/rand"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyrand "github.com/awslabs/smithy-go/rand"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyrand "github.com/aws/smithy-go/rand"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// ClientRequestID is a Smithy BuildMiddleware that will generate a unique ID for logical API operation
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/rand"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
smithymiddleware "github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
smithymiddleware "github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestClientRequestID(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/request_id.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package middleware

import (
"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

// requestIDKey is used to retrieve request id from response metadata
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/request_id_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package middleware
import (
"context"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddRequestIDRetrieverMiddleware adds request id retriever middleware
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/user_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"runtime"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

const execEnvVar = `AWS_EXECUTION_ENV`
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/user_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/query/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package query
import (
"bytes"
"fmt"
smithytesting "github.com/awslabs/smithy-go/testing"
smithytesting "github.com/aws/smithy-go/testing"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/protocol/query/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"io/ioutil"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddAsGetRequestMiddleware adds a middleware to the Serialize stack after the
Expand Down
4 changes: 2 additions & 2 deletions aws/protocol/query/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"testing"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestAsGetRequestMiddleware(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/query/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/big"
"net/url"

"github.com/awslabs/smithy-go/encoding/httpbinding"
"github.com/aws/smithy-go/encoding/httpbinding"
)

// Value represents a Query Value type.
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/restjson/decoder_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/awslabs/smithy-go"
"github.com/aws/smithy-go"
)

// GetErrorInfo util looks for code, __type, and message members in the
Expand Down
6 changes: 3 additions & 3 deletions aws/retry/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddle "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/logging"
smithymiddle "github.com/awslabs/smithy-go/middleware"
"github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
smithymiddle "github.com/aws/smithy-go/middleware"
"github.com/aws/smithy-go/transport/http"
)

// RequestCloner is a function that can take an input request type and clone the request
Expand Down
4 changes: 2 additions & 2 deletions aws/retry/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"

"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyHTTP "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyHTTP "github.com/aws/smithy-go/transport/http"
)

const computePayloadHashMiddlewareID = "ComputePayloadHash"
Expand Down
6 changes: 3 additions & 3 deletions aws/signer/v4/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/awstesting/unit"
"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestComputePayloadHashMiddleware(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/presign_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyHTTP "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyHTTP "github.com/aws/smithy-go/transport/http"
)

// HTTPPresigner is an interface to a SigV4 signer that can sign create a
Expand Down
6 changes: 3 additions & 3 deletions aws/signer/v4/presign_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/awstesting/unit"
"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ import (

"github.com/aws/aws-sdk-go-v2/aws"
v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
"github.com/awslabs/smithy-go/encoding/httpbinding"
"github.com/awslabs/smithy-go/logging"
"github.com/aws/smithy-go/encoding/httpbinding"
"github.com/aws/smithy-go/logging"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion aws/to_ptr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aws/transport/http/content_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package http
import (
"context"
"fmt"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// removeContentTypeHeader is a build middleware that removes
Expand Down
2 changes: 1 addition & 1 deletion aws/transport/http/response_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

smithyhttp "github.com/awslabs/smithy-go/transport/http"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// ResponseError provides the HTTP centric error type wrapping the underlying error
Expand Down
4 changes: 2 additions & 2 deletions aws/transport/http/response_error_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"

awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddResponseErrorMiddleware adds response error wrapper middleware
Expand Down
6 changes: 3 additions & 3 deletions aws/transport/http/timeout_read_closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io"
"time"

"github.com/awslabs/smithy-go"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

type readResult struct {
Expand Down
5 changes: 3 additions & 2 deletions aws/transport/http/timeout_read_closer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package http
import (
"context"
"errors"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"io"
"net/http"
"testing"
"time"

"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

type testReader struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class AwsHttpPresignURLClientGenerator implements GoIntegration {

// map of service to list of operations for which presignedURL client and operation should
// be generated.
public static Map<ShapeId, Set<ShapeId>> PRESIGNER_MAP = new TreeMap<>();
private final Map<ShapeId, Set<ShapeId>> PRESIGNER_MAP = new TreeMap<>();

private static final String addAsUnsignedPayloadName(String operationName) {
return String.format("add%sPayloadAsUnsigned", operationName);
Expand Down
Loading

0 comments on commit 4947df4

Please sign in to comment.