{"id":28749700,"url":"https://github.com/psigen/bazel-issue-13950","last_synced_at":"2026-01-31T13:02:36.208Z","repository":{"id":151961240,"uuid":"403777199","full_name":"psigen/bazel-issue-13950","owner":"psigen","description":"Bazel glob expression infinite-recursion bug","archived":false,"fork":false,"pushed_at":"2021-09-06T22:55:10.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T20:50:55.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psigen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-06T22:55:01.000Z","updated_at":"2021-09-06T22:56:30.000Z","dependencies_parsed_at":"2023-06-19T08:17:58.652Z","dependency_job_id":null,"html_url":"https://github.com/psigen/bazel-issue-13950","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psigen/bazel-issue-13950","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Fbazel-issue-13950","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Fbazel-issue-13950/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Fbazel-issue-13950/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Fbazel-issue-13950/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psigen","download_url":"https://codeload.github.com/psigen/bazel-issue-13950/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Fbazel-issue-13950/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28943894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-16T20:44:09.188Z","updated_at":"2026-01-31T13:02:36.204Z","avatar_url":"https://github.com/psigen.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazel glob expression infinite-recursion bug\n\nThis repo demonstrates a bug where an infinite recursion is detected when\nusing `glob` through a directory traversal that should not happen based on\nthe `exclude=[]` arguments it is provided.\n\nIn this directory, the `foo` subdirectory contains a symlink called `bar`\nto the parent directory, which is recursive and thus can cause traversal\nproblems. `foo` also contains a simple text file.\n\nWhen we construct a `glob` expression that includes the contents of `foo`\nin a wildcard expression, but specifically excludes `bar`, it still detects\nan infinite recursion, even though there is no reason it should process the\n`bar` symlink. This makes it impossible to exclude problematic subpaths.\n\nTo replicate:\n\n```\n$ bazel build //:broken\nINFO: Invocation ID: cd200d1d-5e86-4556-9408-e19cadbadcaf\nERROR: infinite symlink expansion detected\n[start of symlink chain]\n/home/user/bazel-glob-bug\n/home/user/bazel-glob-bug/foo/bar\n[end of symlink chain]\nERROR: Skipping '//:broken': no such package '': Symlink issue while evaluating globs: Infinite symlink expansion: /home/user/bazel-glob-bug/foo/bar- \u003e /home/user/bazel-glob-bug\nWARNING: Target pattern parsing failed.\nERROR: no such package '': Symlink issue while evaluating globs: Infinite symlink expansion: /home/user/bazel-glob-bug/foo/bar- \u003e /home/user/bazel-glob-bug\nINFO: Elapsed time: 0.071s\nINFO: 0 processes.\nFAILED: Build did NOT complete successfully (1 packages loaded)\n```\n\nNote that there is also a separate target that does not require or use this\nglob expression at all: `//:working`. This just demonstrates that due to\nthe ordering of processing, any glob expression with this issue will\ninvalidate all neighboring build targets by interrupting evaluation of the\nBUILD file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsigen%2Fbazel-issue-13950","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsigen%2Fbazel-issue-13950","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsigen%2Fbazel-issue-13950/lists"}