Skip to content

Use of internal package not allowed in go1.5 #13369

@pm-jitendra-kumavat

Description

@pm-jitendra-kumavat

I am getting an error "use of internal package not allowed" while building a package with go version 1.5.
Error:
package toolsapi
imports toolsapi/cache
imports toolsapi/models
imports gopkg.in/mgo.v2
imports gopkg.in/mgo.v2-unstable/internal/scram: use of internal package not allowed

My directory structure:
toolsapi/
cache/
models/
controllers/

This works perfectly fine with version go1.4.3. can anyone help to resolve the issue. I couldn't find any solution over internet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions