{"id":16678007,"url":"https://github.com/hlopko/bazel_platforms_examples","last_synced_at":"2025-09-13T01:33:05.540Z","repository":{"id":50888317,"uuid":"192088717","full_name":"hlopko/bazel_platforms_examples","owner":"hlopko","description":"This repo contains a collection of examples demonstrating how to use various Bazel concepts related to platforms, toolchains, configurations, and configurable attributes.","archived":false,"fork":false,"pushed_at":"2019-07-13T01:28:54.000Z","size":26,"stargazers_count":38,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:26:28.661Z","etag":null,"topics":["bazel","bazel-examples","bazel-rules"],"latest_commit_sha":null,"homepage":"https://bazel.build","language":"Python","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/hlopko.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}},"created_at":"2019-06-15T14:35:33.000Z","updated_at":"2024-11-16T04:29:15.000Z","dependencies_parsed_at":"2022-08-25T14:51:03.576Z","dependency_job_id":null,"html_url":"https://github.com/hlopko/bazel_platforms_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlopko%2Fbazel_platforms_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlopko%2Fbazel_platforms_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlopko%2Fbazel_platforms_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlopko%2Fbazel_platforms_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlopko","download_url":"https://codeload.github.com/hlopko/bazel_platforms_examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248114722,"owners_count":21050098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-examples","bazel-rules"],"created_at":"2024-10-12T13:28:07.405Z","updated_at":"2025-04-09T21:32:53.688Z","avatar_url":"https://github.com/hlopko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazel Platforms Examples\n\n*This repo requires Bazel 0.28 or later (or built from HEAD).*\n\nThis repo contains a collection of examples demonstrating how to use various\nBazel concepts related to\n[platforms](https://docs.bazel.build/versions/master/platforms.html),\n[toolchains](https://docs.bazel.build/versions/master/toolchains.html),\n[configurations](https://docs.bazel.build/versions/master/skylark/config.html),\nand [configurable\nattributes](https://docs.bazel.build/versions/master/configurable-attributes.html).\n\nIt also tries to give guidance when each of these concepts is used and should\naccompany documentation on [bazel.build](https://bazel.build). Be sure to use\n[`--toolchain_resolution_debug`](https://docs.bazel.build/versions/master/command-line-reference.html#flag--toolchain_resolution_debug)\nwhere the resolution isn't obvious.\n\n## Structure\n\n```\n├── .bazelrc      # Setting defaults until https://github.com/bazelbuild/bazel/issues/7081 is fixed.\n│\n├── WORKSPACE     # Here we define @platforms repo with constraints. We use common\n│                 # constraints repository from\n│                 # https://github.com/bazelbuild/platforms. We also register\n│                 # toolchains and we register execution platforms there.\n│\n├── BUILD         # Here we define all needed 'platform' targets that we then use\n│                 # in examples.\n│\n├── examples      # Actual examples, one per subpackage.\n│\n└── yolo          # Yolo-lang rules definition.\n    │\n    ├── BUILD     # Here we define all 'toolchain' targets that we then use in\n    │             # in examples.\n    │\n    └── defs.bzl\n```\n\n`Yolo-lang` here is obviously not a real programming language, it's just a\nsimple implementation of Bazel Starlark rules that is meant to demonstrate\nexamples without confusing us with technical details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlopko%2Fbazel_platforms_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlopko%2Fbazel_platforms_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlopko%2Fbazel_platforms_examples/lists"}