{"id":19607057,"url":"https://github.com/bookingcom/rules_booking","last_synced_at":"2025-02-26T16:44:40.091Z","repository":{"id":46355490,"uuid":"419685089","full_name":"bookingcom/rules_booking","owner":"bookingcom","description":"Some Bazel rules we have built at Booking.com","archived":false,"fork":false,"pushed_at":"2024-08-28T07:59:10.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-01-09T09:26:14.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bookingcom.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-21T10:54:17.000Z","updated_at":"2024-08-28T07:58:07.000Z","dependencies_parsed_at":"2024-03-28T14:00:10.052Z","dependency_job_id":"bdccccef-748d-42ba-9642-95bf466511c4","html_url":"https://github.com/bookingcom/rules_booking","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Frules_booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Frules_booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Frules_booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Frules_booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bookingcom","download_url":"https://codeload.github.com/bookingcom/rules_booking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240895006,"owners_count":19874909,"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":[],"created_at":"2024-11-11T10:08:36.916Z","updated_at":"2025-02-26T16:44:40.059Z","avatar_url":"https://github.com/bookingcom.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rules_booking\nSome Bazel rules we have built at Booking.com\n\n# Usage\n\nAdd the following lines to your `WORKSPACE`\n\n```language:python\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n\nGIT_SHA=\"\u003cGIT_SHA\u003e\"\n\nhttp_archive(\n    name = \"rules_booking\",\n    urls = [\n        \"https://github.com/bookingcom/rules_booking/archive/{}.tar.gz\".format(GIT_SHA)\n    ],\n    strip_prefix = \"rules_booking_{}\".format(GIT_SHA)\n)\n```\n\n# Rules\n\n## remap_tar\n\nSometimes you need to deploy a layer of assets into a container image where\nall the content is static assets, in those cases is more convenient to use\n`http_file` than `http_archive` to download the remote assets in bulk, but\n`http_file` doesn't provide the convenient strip_prefix argument, so we\ncreate `remap_tar` that allows to replace the original package prefix with\na prefix that's more suitable for your container image.\n\n## gitlab_http_archive and gitlab_http_file\n\nSimilar to http_archive and http_file but aimed for downloading assets from\nprivate gitlab repositories by using your own private tokens or CI job\ntokens\n\n# Developing\n\nWe use [buildifier](https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md)\nto format our Bazel rules, please run:\n\n```\nbazel run @//dev:buildifier\n```\n\nBefore pushing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbookingcom%2Frules_booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbookingcom%2Frules_booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbookingcom%2Frules_booking/lists"}