Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

'gb generate' fails on subdirectories of 'cmd' #564

@ldm5180

Description

@ldm5180

This is basically a reopening of #492

When there is a subdirectory/sub-package of src/cmd, it fails to build with an error that looks like this:

--- FAIL: TestGbBuildSubPackageOfCmd (0.06s)
    gb_test.go:179: running /tmp/testgb347664536/testgb [generate]
    gb_test.go:193: standard error:
    gb_test.go:194: can't load package: package cmd/hello: open /usr/lib/go/src/cmd/hello: no such file or directory
        FATAL: command "generate" failed: exit status 1

    gb_test.go:203: gb [generate] failed unexpectedly: exit status 1

It appears that the search path does not contain both the $GB_PROJECT_DIR and the $GB_GOROOT. It only contains the $GB_GOROOT.

I will shortly contribute a pull request which causes TestGbBuildSubPackageOfCmd to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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