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

Cannot find module providing package github.com/jmespath/go-jmespath #2745

Closed distinctdan closed 3 months ago

distinctdan commented 3 months ago

Acknowledgements

Describe the bug

Hi, I'm trying to use the sdk, but when I run go get github.com/aws/aws-sdk-go-v2/service/redshift, I get the following error. Would anyone know what I'm missing here?

go: github.com/aws/aws-sdk-go-v2/service/redshift imports
        github.com/jmespath/go-jmespath: cannot find module providing package github.com/jmespath/go-jmespath

Expected Behavior

No error should be thrown

Current Behavior

Throws an error

Reproduction Steps

Run go get github.com/aws/aws-sdk-go-v2/service/redshift

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

go.mod:

module kptinnovationslambda

go 1.22.6

require (
    github.com/aws/aws-lambda-go v1.47.0
)

require (
    github.com/aws/aws-sdk-go-v2 v1.30.3 // indirect
    github.com/aws/aws-sdk-go-v2/config v1.27.27 // indirect
    github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect
    github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect
    github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
    github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
    github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
    github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
    github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
    github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.32.4 // indirect
    github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect
    github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
    github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
    github.com/aws/smithy-go v1.20.3 // indirect
    github.com/jmespath/go-jmespath v0.4.0 // indirect
)

go mod graph:

kptinnovationslambda github.com/aws/aws-lambda-go@v1.47.0
kptinnovationslambda github.com/aws/aws-sdk-go-v2@v1.30.3
kptinnovationslambda github.com/aws/aws-sdk-go-v2/config@v1.27.27
kptinnovationslambda github.com/aws/aws-sdk-go-v2/credentials@v1.17.27
kptinnovationslambda github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.11
kptinnovationslambda github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
kptinnovationslambda github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
kptinnovationslambda github.com/aws/aws-sdk-go-v2/internal/ini@v1.8.0
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.11.3
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/secretsmanager@v1.32.4
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4
kptinnovationslambda github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3
kptinnovationslambda github.com/aws/smithy-go@v1.20.3
kptinnovationslambda github.com/jmespath/go-jmespath@v0.4.0
kptinnovationslambda go@1.22.6
github.com/aws/aws-lambda-go@v1.47.0 github.com/stretchr/testify@v1.7.2
github.com/aws/aws-lambda-go@v1.47.0 github.com/davecgh/go-spew@v1.1.1
github.com/aws/aws-lambda-go@v1.47.0 github.com/pmezard/go-difflib@v1.0.0
github.com/aws/aws-lambda-go@v1.47.0 gopkg.in/yaml.v3@v3.0.1
github.com/aws/aws-sdk-go-v2@v1.30.3 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2@v1.30.3 github.com/jmespath/go-jmespath@v0.4.0
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/credentials@v1.17.27
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.11
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/internal/ini@v1.8.0
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.11.3
github.com/aws/aws-sdk-go-v2/config@v1.27.27 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.11
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.11.3
github.com/aws/aws-sdk-go-v2/credentials@v1.17.27 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17
github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.11 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.11 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.11.3 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/secretsmanager@v1.32.4 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/service/secretsmanager@v1.32.4 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/service/secretsmanager@v1.32.4 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/service/secretsmanager@v1.32.4 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/service/sso@v1.22.4 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.26.4 github.com/aws/smithy-go@v1.20.3
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/aws-sdk-go-v2@v1.30.3
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.15
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.15
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.11.3
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.11.17
github.com/aws/aws-sdk-go-v2/service/sts@v1.30.3 github.com/aws/smithy-go@v1.20.3
github.com/jmespath/go-jmespath@v0.4.0 github.com/jmespath/go-jmespath/internal/testify@v1.5.1
go@1.22.6 toolchain@go1.22.6
github.com/jmespath/go-jmespath/internal/testify@v1.5.1 github.com/davecgh/go-spew@v1.1.0
github.com/jmespath/go-jmespath/internal/testify@v1.5.1 github.com/pmezard/go-difflib@v1.0.0
github.com/jmespath/go-jmespath/internal/testify@v1.5.1 github.com/stretchr/objx@v0.1.0
github.com/jmespath/go-jmespath/internal/testify@v1.5.1 gopkg.in/yaml.v2@v2.2.8
gopkg.in/yaml.v2@v2.2.8 gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405

Compiler and Version used

go version go1.22.6 darwin/amd64

Operating System and version

OSX Sonoma 14.5

RanVaknin commented 3 months ago

Hi @distinctdan ,

Are you behind a proxy/ firewall/ some company network that might be blocking traffic?

You can try:

go clean -modcache
go mod tidy 

And then if that doesn't work, try to get that dependency explicitly with verbose logs:

go get -v github.com/jmespath/go-jmespath

Thanks, Ran~

distinctdan commented 3 months ago

Thanks Ran, cleaning the modcache in addition to running go clean -cache fixed it! My laptop has had intermittent clock issues on our corporate wifi, which could have caused ssl to fail when it tried to download the modules. If it cached that failure, that would explain my problem. On a side note, it seems like a mistake for Go to cache failures like this. Regardless, thanks for the help!

github-actions[bot] commented 3 months 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.