Skip to content

IBM Blockchain Platform VScode GOPATH error #21

Description

@subash96

I am running https://github.com/IBM/PublicRegulationFabric-Food-IBPV20/blob/master/README.md use case on a windows VM I created on Azure. I have installed Golang and the GOPATH = C:\Go

My Go files from the IBM use case are in C:\Go\src\github.com\food

While i Try to package this on VScode, the error is The Go smart contract is not a subdirectory of the path specified by the environment variable GOPATH. Please correct the environment variable GOPATH.

I tried changing the GOPATH environment variable to so many options, like GOPATH = C:\Go\src\github.com\food, GOPATH = C:\Go\src\ etc but still getting the same error. How do I correct the environment variable.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions