bazelbuild / bazelbuild/bazel

error from building ignored package blames --deleted_packages

Open
#10,427 5 comments 6 reactions 0 assignees View on GitHub
not stale P3 team-OSS type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 16h
Merged PRs (30d)
72

Description

```
$ touch WORKSPACE
$ cat > .bazelignore
pkg
$ bazel build //pkg
ERROR: Skipping '//pkg': no such package 'pkg': Package is considered deleted due to --deleted_packages
WARNING: Target pattern parsing failed.
ERROR: no such package 'pkg': Package is considered deleted due to --deleted_packages
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the commands using WORKSPACE and .bazelignore, then trace how the //pkg target is rejected and why the message refers to --deleted_packages. Compare the handling of the ignored package with the reported diagnostic; done means the build reports the relevant .bazelignore condition instead of blaming --deleted_packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.