{"id":18244328,"url":"https://github.com/stackb/bazel-gazelle-debug","last_synced_at":"2025-04-08T18:44:56.738Z","repository":{"id":91601537,"uuid":"421125697","full_name":"stackb/bazel-gazelle-debug","owner":"stackb","description":"Gazelle extension for debugging what gazelle is doing","archived":false,"fork":false,"pushed_at":"2021-10-26T21:05:08.000Z","size":27,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T14:51:45.317Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackb.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}},"created_at":"2021-10-25T17:42:30.000Z","updated_at":"2022-11-29T15:24:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d39160af-29be-4bb1-94fb-37e76809e193","html_url":"https://github.com/stackb/bazel-gazelle-debug","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/stackb%2Fbazel-gazelle-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbazel-gazelle-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbazel-gazelle-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbazel-gazelle-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackb","download_url":"https://codeload.github.com/stackb/bazel-gazelle-debug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247908958,"owners_count":21016474,"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-05T09:16:15.911Z","updated_at":"2025-04-08T18:44:56.731Z","avatar_url":"https://github.com/stackb.png","language":"Starlark","readme":"# bazel-gazelle-debug\n\nA [gazelle](https://github.com/bazelbuild/bazel-gazelle) extension that helps\ndebug what gazelle is doing.\n\n## Usage\n\n```python\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n\n# Branch: master\n# Commit: 66315dd31d70f2e03d7dfaa310f4d549be6522e4\n# Date: 2021-10-25 18:13:58 +0000 UTC\n# URL: https://github.com/stackb/bazel-gazelle-debug/commit/66315dd31d70f2e03d7dfaa310f4d549be6522e4\n#\n# Update ws name\n# Size: 14361 (14 kB)\nhttp_archive(\n    name = \"build_stack_bazel_gazelle_debug\",\n    sha256 = \"94abd91ca9e9a9950a84cdb3b6e4b3b033c2a5f3ea6b77acd51f7f7da3dbc69c\",\n    strip_prefix = \"bazel-gazelle-debug-66315dd31d70f2e03d7dfaa310f4d549be6522e4\",\n    urls = [\"https://github.com/stackb/bazel-gazelle-debug/archive/66315dd31d70f2e03d7dfaa310f4d549be6522e4.tar.gz\"],\n)\n```\n\n\n```python\nload(\"@bazel_gazelle//:def.bzl\", \"DEFAULT_LANGUAGES\", \"gazelle\", \"gazelle_binary\")\nload(\"@com_github_bazelbuild_buildtools//buildifier:def.bzl\", \"buildifier\")\n\n# --- show debugging output ---\n# gazelle:log_level debug\n\n# --- show summary of total time on .Info ---\n# gazelle:progress true\n\n# --- warn about packages that take more than 1s to generate ---\n# gazelle:generaterules_slow_warn_duration 1s\n\ngazelle_binary(\n    name = \"gazelle-debug\",\n    languages = DEFAULT_LANGUAGES + [\"@build_stack_bazel_gazelle_debug//language/debug\"],\n)\n\ngazelle(\n    name = \"gazelle\",\n    gazelle = \"//:gazelle-debug\",\n)\n```\n\nHere's the output of `bazel run //:gazelle` with `gazelle:log_level debug` and\n`gazelle:generaterules_slow_warn_duration 1ms` on this repo:\n\n```\n11:50AM DBG configuring directive dir= key=progress lang=debug value=true\n11:50AM DBG configuring directive dir= key=generaterules_slow_warn_duration lang=debug value=1ms\n11:50AM DBG visiting dir=language lang=debug\n11:50AM DBG visiting dir=language/debug lang=debug\n11:50AM DBG read dir dir=language/debug file=BUILD.bazel lang=debug\n11:50AM DBG read dir dir=language/debug file=config.go lang=debug\n11:50AM DBG read dir dir=language/debug file=debugconfig.go lang=debug\n11:50AM DBG read dir dir=language/debug file=fix.go lang=debug\n11:50AM DBG read dir dir=language/debug file=generate.go lang=debug\n11:50AM DBG read dir dir=language/debug file=kinds.go lang=debug\n11:50AM DBG read dir dir=language/debug file=lang.go lang=debug\n11:50AM DBG read dir dir=language/debug file=resolve.go lang=debug\n11:50AM DBG generated rule kind=go_library label=//language/debug lang=debug name=debug\n11:50AM WRN slow 10ms dir=language/debug lang=debug t=9.993983ms total-files=8 total-rules=1\n11:50AM DBG generated in 10ms file-count=8 label=//language/debug:all lang=debug rule-count=1\n11:50AM INF time dir=language/debug elapsed=10ms lang=debug t=9.994174ms\n11:50AM DBG generated in 0s file-count=0 label=//language:all lang=debug rule-count=0\n11:50AM INF time dir=language elapsed=10ms lang=debug t=10.132885ms\n11:50AM DBG read dir dir= file=.gitignore lang=debug\n11:50AM DBG read dir dir= file=BUILD.bazel lang=debug\n11:50AM DBG read dir dir= file=README.md lang=debug\n11:50AM DBG read dir dir= file=WORKSPACE lang=debug\n11:50AM DBG read dir dir= file=bazel-bazel-gazelle-debug lang=debug\n11:50AM DBG read dir dir= file=bazel-bin lang=debug\n11:50AM DBG read dir dir= file=bazel-out lang=debug\n11:50AM DBG read dir dir= file=bazel-testlogs lang=debug\n11:50AM DBG read dir dir= file=go.mod lang=debug\n11:50AM DBG read dir dir= file=go.sum lang=debug\n11:50AM DBG read dir dir= file=go_deps.bzl lang=debug\n11:50AM DBG read dir dir= file=workspace_deps.bzl lang=debug\n11:50AM WRN slow 7ms dir= lang=debug t=6.528314ms total-files=12 total-rules=0\n11:50AM DBG generated in 7ms file-count=12 label=//:all lang=debug rule-count=0\n11:50AM INF time dir= elapsed=17ms lang=debug t=16.661199ms\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/config lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/label lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/language lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/repo lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/resolve lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/bazelbuild/bazel-gazelle/rule lang=debug resolve=go\n11:50AM DBG resolving label that provides 'import' impLang=go import=github.com/rs/zerolog lang=debug resolve=go\n```\n\n## Environment Variables\n\nTo change the root log level and/or enable progress, use\n`GAZELLE_LOG_LEVEL=debug` and or `GAZELLE_PROGRESS=true`.\n\n\n## Dependencies\n\nOther than gazelle itself, this package requires [github.com/rs/zerolog](https://github.com/rs/zerolog).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fbazel-gazelle-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackb%2Fbazel-gazelle-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fbazel-gazelle-debug/lists"}