Skip to content

Need a way to handle subpackages #4

@proppy

Description

@proppy

Some non-trivial application (like etcd) import subpackages from their own import paths, and thus expect to be stored at a fixed location in GOPATH, example:

import "github.com/coreos/etcd/log"

Currently he onbuild variant ADD the source code in GOPATH/src/app, this causes go get ./... to fetch this kind of dependencies remotely and possibly ignore local change.

One possible solution is to add support for a .godir file defining the application import path at the root of the source directory, see:
GoogleCloudPlatform/golang-docker#10
GoogleCloudPlatform/golang-docker#12

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