Consider foo/BUILD:
# gazelle:proto_strip_import_prefix /portal/protos
Gazelle prints the following error:
gazelle: proto_strip_import_prefix "/foo/bar" not in directory foo
Obviously foo/bar is in the directory foo, so this warning seems to be a false positive.