Skip to content

Examples not usable in Go-module because of AutoRest #117

Open

Description

Expected Behavior

creating a simple Go-Module should work like this, right?

mkdir testProject
cd testProject
go mod init someModule
touch main.go
# Copy contents of "Receive with EPH"-Example from README into main.go
go build

Actual Behavior

Build fails because of ambigous autorest-versions (0.3.0 and 12.0.0)

ambiguous import: found github.com/Azure/go-autorest/autorest in multiple modules:
	github.com/Azure/go-autorest v12.0.0+incompatible (/home/rare/go/pkg/mod/github.com/!azure/go-autorest@v12.0.0+incompatible/autorest)
	github.com/Azure/go-autorest/autorest v0.3.0 (/home/rare/go/pkg/mod/github.com/!azure/go-autorest/autorest@v0.3.0)

Environment

  • OS: Fedora 29
  • Go version: 1.12.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions