{"id":20132535,"url":"https://github.com/aherrmann/bazel-user-settings-example","last_synced_at":"2026-03-06T12:02:23.285Z","repository":{"id":71967618,"uuid":"259880447","full_name":"aherrmann/bazel-user-settings-example","owner":"aherrmann","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-29T09:22:40.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T22:18:29.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"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/aherrmann.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},"funding":{"open_collective":"bazel-rules-authors-sig"}},"created_at":"2020-04-29T09:22:25.000Z","updated_at":"2020-04-29T09:22:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"67862de2-08bf-4ae9-a41b-fe473c927cfa","html_url":"https://github.com/aherrmann/bazel-user-settings-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aherrmann/bazel-user-settings-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aherrmann%2Fbazel-user-settings-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aherrmann%2Fbazel-user-settings-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aherrmann%2Fbazel-user-settings-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aherrmann%2Fbazel-user-settings-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aherrmann","download_url":"https://codeload.github.com/aherrmann/bazel-user-settings-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aherrmann%2Fbazel-user-settings-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-11-13T20:53:56.617Z","updated_at":"2026-03-06T12:02:23.236Z","avatar_url":"https://github.com/aherrmann.png","language":"Starlark","funding_links":["https://opencollective.com/bazel-rules-authors-sig"],"categories":[],"sub_categories":[],"readme":"## Example of [build configurations](https://docs.bazel.build/versions/2.1.0/skylark/config.html)\n\nThis is a fork of the [original reproduction][orig_repro] of an [issue][issue]\nregarding workspace prefixes on user defined configuration flags. This\nreproduction has been updated to show how the situation has improved in Bazel\nand where the issue remains.\n\n[orig_repro]: https://github.com/ulysses4ever/bazel-user-settings-example/\n[issue]: https://github.com/bazelbuild/bazel/issues/9177\n\n### The minimal working setup\n\nIf you do:\n\n```bash\nbazel clean \u0026\u0026 bazel build //:my_drink\n```\nit will print:\n```\nDEBUG: .../rules.bzl:7:9: Get the default (False)\n```\n\nIn contrast, if you do\n```bash\nbazel clean \u0026\u0026 bazel build //:my_drink --@rules_example//:favorite_flavor=True\n```\nit will print:\n```\nDEBUG: .../rules.bzl:5:9: Get the opposite of default (True)\n```\n\nI.e. the workspace name prefix is understood, so long as it is the workspace\nname of an external workspace.\n\n### The remaining bug (branch: [bug](https://github.com/ulysses4ever/bazel-user-settings-example/commit/1d79b746b0323e0450a99aedea9e8e3c3d924c07))\n\nChange into the `rules_example` directory so that the flag becomes local.\n\nIf you do:\n\n```bash\n(cd rules_example \u0026\u0026 bazel clean \u0026\u0026 bazel build //:my_drink)\n```\nit will print:\n```\nDEBUG: .../rules.bzl:7:9: Get the default (False)\n```\n\nIn contrast, if you do\n```bash\n(cd rules_example \u0026\u0026 bazel build //:my_drink --//:favorite_flavor=True)\n```\nit will print:\n```\nDEBUG: .../rules.bzl:5:9: Get the opposite of default (True)\n```\nI.e. the flag is understood so long as it's label is local.\n\nBut, if you do\n```bash\n(cd rules_example \u0026\u0026 bazel build //:my_drink --@rules_example//:favorite_flavor=True)\n```\nit will print:\n```\nDEBUG: .../rules.bzl:7:9: Get the default (False)\n```\nI.e. the flag is silently ignored, which is wrong.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faherrmann%2Fbazel-user-settings-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faherrmann%2Fbazel-user-settings-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faherrmann%2Fbazel-user-settings-example/lists"}