{"id":41585487,"url":"https://github.com/yuyawk/rules_build_error","last_synced_at":"2026-01-27T16:02:27.255Z","repository":{"id":231985266,"uuid":"782579125","full_name":"yuyawk/rules_build_error","owner":"yuyawk","description":"Bazel rules to test a build error ","archived":false,"fork":false,"pushed_at":"2026-01-24T15:10:35.000Z","size":269,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T18:01:44.930Z","etag":null,"topics":["bazel","bazel-rules"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuyawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-05T15:27:32.000Z","updated_at":"2026-01-24T12:19:02.000Z","dependencies_parsed_at":"2024-05-01T12:32:11.059Z","dependency_job_id":"1bb20b04-ecf0-46a3-bcd2-2b3a36cd651d","html_url":"https://github.com/yuyawk/rules_build_error","commit_stats":null,"previous_names":["yuyawk/rules_build_error"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/yuyawk/rules_build_error","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyawk%2Frules_build_error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyawk%2Frules_build_error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyawk%2Frules_build_error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyawk%2Frules_build_error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuyawk","download_url":"https://codeload.github.com/yuyawk/rules_build_error/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyawk%2Frules_build_error/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","bazel-rules"],"created_at":"2026-01-24T09:03:19.464Z","updated_at":"2026-01-27T16:02:27.238Z","avatar_url":"https://github.com/yuyawk.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `rules_build_error`\n\nBazel rules to test build errors.\n\n## Description\n\n`rules_build_error` provides Bazel implementations that let developers verify code that **should not** compile.\n\nWhen executing `bazel test`, standard Bazel testing rules, like `cc_test`, will result in an error if a test code doesn’t compile. With `rules_build_error`, a `bazel build` command will instead fail when code **does** compile, indicating that the target is expected to raise a compilation error.\n\n## Usage\n\nFor more examples, see [the example module](examples).\n\nLoad this module from the [Bazel Central Registry](https://registry.bazel.build/modules/rules_build_error) to use it as a Bazel module.\n\n### C/C++ example\n\n```bazel\nload(\"@rules_build_error//lang/cc:defs.bzl\", \"cc_build_error_test\")\nload(\"@rules_build_error//matcher:defs.bzl\", \"matcher\")\n\ncc_build_error_test(\n    name = \"cause_compile_error\",\n    src = \"cause_compile_error.cpp\",\n    deps = [\":library_to_successfully_link\"], # `:library_to_successfully_link` must provide `CcInfo`, like `cc_library`\n    compile_stderr = matcher.has_substr(\"static assertion failed\"),\n)\n```\n\n## Language-specific implementations\n\nSee individual language implementations:\n\n- [C/C++ README](lang/cc/README.md)\n\n## Matcher\n\nThe `matcher` struct allows specific error message matching criteria. Learn more in [its readme](matcher/README.md).\n\n## Contributing\n\nPull requests and issues are welcome! See [DEVEL.md](DEVEL.md) for development documentation.\n\n## CI status\n\n[![Tests](https://github.com/yuyawk/rules_build_error/actions/workflows/tests.yml/badge.svg)](https://github.com/yuyawk/rules_build_error/actions/workflows/tests.yml)\n\n[![Bazel Steward](https://github.com/yuyawk/rules_build_error/actions/workflows/bazel-steward.yml/badge.svg)](https://github.com/yuyawk/rules_build_error/actions/workflows/bazel-steward.yml)\n\n[![Release](https://github.com/yuyawk/rules_build_error/actions/workflows/release.yml/badge.svg)](https://github.com/yuyawk/rules_build_error/actions/workflows/release.yml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuyawk%2Frules_build_error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuyawk%2Frules_build_error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuyawk%2Frules_build_error/lists"}