Skip to content

bazel: failure to build tests that depend on pkg/testutils/skip #59778

@rickystewart

Description

@rickystewart

bazel test pkg/util/uuid:uuid_test fails with this error:

cockroach$ bazel test pkg/util/uuid:uuid_test
INFO: Analyzed target //pkg/util/uuid:uuid_test (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
ERROR: /Users/ricky/go/src/github.com/cockroachdb/cockroach/pkg/util/uuid/BUILD.bazel:22:8: GoCompilePkg pkg/util/uuid/uuid_test.internal.recompileinternal.a failed (Exit 1): builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix darwin_amd64 -src pkg/util/uuid/codec.go -src pkg/util/uuid/generator.go -src pkg/util/uuid/sql.go -src ... (remaining 37 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix darwin_amd64 -src pkg/util/uuid/codec.go -src pkg/util/uuid/generator.go -src pkg/util/uuid/sql.go -src ... (remaining 37 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
compilepkg: missing strict dependencies:
	/private/var/tmp/_bazel_ricky/be70b24e7357091e16c49d70921b7985/sandbox/darwin-sandbox/10403/execroot/cockroach/pkg/util/uuid/codec_test.go: import of "github.com/cockroachdb/cockroach/pkg/testutils/skip"
No dependencies were provided.
Check that imports in Go sources match importpath attributes in deps.
Target //pkg/util/uuid:uuid_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.540s, Critical Path: 0.07s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
//pkg/util/uuid:uuid_test                                       FAILED TO BUILD

FAILED: Build did NOT complete successfully

The dependencies, importpath, etc. are apparently declared correctly.

Metadata

Metadata

Assignees

Labels

A-build-systemC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions