Skip to content

load dependencies in WORKSPACE not respected #15

@arxanas

Description

@arxanas

To Reproduce

$ focus new --dense-repo=https://github.com/bazelbuild/bazel --template bazel bazel-focus
$ focus add bazel://src/main/cpp:blaze_util
$ bazel build //src/main/cpp:blaze_util

Produces an error message like this:

$ bazel build //src/main/cpp:blaze_util
ERROR: error loading package '': Label '//src/test/shell/bazel:list_source_repository.bzl' is invalid because 'src/test/shell/bazel' is not a package; perhaps you meant to put the colon here: '//src:test/shell/bazel/list_source_repository.bzl'?
INFO: Elapsed time: 0.134s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

But there is a load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository") in the WORKSPACE file, so we should have been loading that automatically.

Expected behavior

bazel build should succeed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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