Skip to content

go-swagger install error #2934

@Anjali-Saha

Description

@Anjali-Saha

Problem statement

when running $ GO111MODULE=off go get -u github.com/go-swagger/go-swagger/cmd/swagger

I get the following errors:
package embed: unrecognized import path "embed" (import path does not begin with hostname)
package io/fs: unrecognized import path "io/fs" (import path does not begin with hostname)
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:

I have ${GOPATH}/bin in my path

Please remove the sections that don't apply

Steps to reproduce

$ GO111MODULE=off go get -u github.com/go-swagger/go-swagger/cmd/swagger

Environment

swagger version: v1.30.4
go version: 1.13.0
OS: OSX 12.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions