{"id":27006770,"url":"https://github.com/vmware/jsonnet-lang-for-gazelle","last_synced_at":"2025-04-04T08:01:38.662Z","repository":{"id":57704821,"uuid":"250268381","full_name":"vmware-archive/jsonnet-lang-for-gazelle","owner":"vmware-archive","description":"Jsonnet language extension for Bazel Gazelle","archived":true,"fork":false,"pushed_at":"2022-01-18T12:58:08.000Z","size":100,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:02:01.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmware-archive.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2020-03-26T13:38:34.000Z","updated_at":"2023-06-30T18:19:47.000Z","dependencies_parsed_at":"2022-08-24T07:40:51.660Z","dependency_job_id":null,"html_url":"https://github.com/vmware-archive/jsonnet-lang-for-gazelle","commit_stats":null,"previous_names":["vmware/jsonnet-lang-for-gazelle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-archive%2Fjsonnet-lang-for-gazelle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-archive%2Fjsonnet-lang-for-gazelle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-archive%2Fjsonnet-lang-for-gazelle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-archive%2Fjsonnet-lang-for-gazelle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmware-archive","download_url":"https://codeload.github.com/vmware-archive/jsonnet-lang-for-gazelle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142051,"owners_count":20890652,"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":"2025-04-04T08:01:23.518Z","updated_at":"2025-04-04T08:01:38.646Z","avatar_url":"https://github.com/vmware-archive.png","language":"Go","funding_links":[],"categories":["Go (134)"],"sub_categories":[],"readme":"VMware has ended active development of this project, this repository will no longer be updated\n\nGazelle Jsonnet\n===============\n\n.. All external links are here\n.. _FAQ: https://cla.vmware.com/faq\n.. _CONTRIBUTING.md: CONTRIBUTING.md\n.. _Apache 2 license: LICENSE.txt\n\n.. role:: direc(code)\n.. role:: value(code)\n.. End of directives\n\nThis implements the ``jsonnet`` language for Gazelle.\n\nSetup\n-----\n\nRunning Gazelle with Bazel\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo use Gazelle in a new project, add the ``bazel_gazelle`` repository and its\ndependencies to your WORKSPACE file and call ``gazelle_dependencies``. It\nshould look like this:\n\n.. code:: bzl\n\n    load(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n\n    http_archive(\n        name = \"io_bazel_rules_go\",\n        urls = [\n            \"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.20.1/rules_go-v0.20.1.tar.gz\",\n            \"https://github.com/bazelbuild/rules_go/releases/download/v0.20.1/rules_go-v0.20.1.tar.gz\",\n        ],\n        sha256 = \"842ec0e6b4fbfdd3de6150b61af92901eeb73681fd4d185746644c338f51d4c0\",\n    )\n\n    http_archive(\n        name = \"bazel_gazelle\",\n        urls = [\n            \"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.0/bazel-gazelle-v0.19.0.tar.gz\",\n            \"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.0/bazel-gazelle-v0.19.0.tar.gz\",\n        ],\n        sha256 = \"41bff2a0b32b02f20c227d234aa25ef3783998e5453f7eade929704dcff7cd4b\",\n    )\n\n    load(\"@io_bazel_rules_go//go:deps.bzl\", \"go_rules_dependencies\", \"go_register_toolchains\")\n\n    go_rules_dependencies()\n\n    go_register_toolchains()\n\n    load(\"@bazel_gazelle//:deps.bzl\", \"gazelle_dependencies\")\n\n    gazelle_dependencies()\n\n    load(\"@bazel_tools//tools/build_defs/repo:git.bzl\", \"git_repository\")\n\n    git_repository(\n        name = \"jsonnet_gazelle\",\n        branch = \"master\",\n        remote = \"https://github.com/vmware/jsonnet-lang-for-gazelle\",\n    )\n\nAdd the code below to the BUILD or BUILD.bazel file in the root directory of\nyour repository to build a gazelle binary including the Jsonnet language.\n\n.. code:: bzl\n\n    load(\"@bazel_gazelle//:def.bzl\", \"DEFAULT_LANGUAGES\", \"gazelle\", \"gazelle_binary\")\n\n    gazelle_binary(\n        name = \"gazelle_jsonnet_binary\",\n        languages = DEFAULT_LANGUAGES + [\n            \"@jsonnet_gazelle//language/jsonnet:go_default_library\",\n        ],\n        visibility = [\"//visibility:public\"],\n    )\n\n    load(\"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl\", \"jsonnet_library\")\n\n    gazelle(\n        name = \"gazelle\",\n        gazelle = \"//:gazelle_jsonnet_binary\",\n    )\n\nAfter adding this code, you can run Gazelle with Bazel.\n\n.. code::\n\n  $ bazel run //:gazelle\n\nThis will generate new BUILD.bazel files for your project. You can run the same\ncommand in the future to update existing BUILD.bazel files to include new source\nfiles.\n\nYou can pass additional arguments to Gazelle after a ``--`` argument.\n\n.. code::\n\n  $ bazel run //:gazelle -- -jsonnet_ignore_folders=scripts\n\nDirectives\n~~~~~~~~~~\n\nGazelle can be configured with *directives*, which are written as top-level\ncomments in build files. Most options that can be set on the command line\ncan also be set using directives. Some options can only be set with\ndirectives.\n\nDirective comments have the form ``# gazelle:key value``.\n\nExample\n^^^^^^^\n\n.. code:: bzl\n\n  load(\"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl\", \"jsonnet_library\")\n\n  # gazelle:jsonnet_ignore_folders scripts\n\n  gazelle(\n      name = \"gazelle_jsonnet\",\n      gazelle = \"//:gazelle_jsonnet_binary\",\n  )\n\nDirectives apply in the directory where they are set *and* in subdirectories.\nThis means, for example, if you set ``# gazelle:jsonnet_ignore_folders`` in the build file\nin your project's root directory, it affects your whole project. If you\nset it in a subdirectory, it only affects rules in that subtree.\n\nThe following directives are recognized:\n\n+-----------------------------------------------------+--------------------------------------+\n| **Directive**                                       | **Default value**                    |\n+=====================================================+======================================+\n| :direc:`# gazelle:jsonnet_ignore_folders`           | none                                 |\n+-----------------------------------------------------+--------------------------------------+\n| Comma-separated list of folders that should not be processed. If not specified, Gazelle    |\n| will process all the folders.                                                              |\n+-----------------------------------------------------+--------------------------------------+\n\nContributing\n------------\n\nThe jsonnet-lang-for-gazelle project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our `FAQ`_. For more detailed information, refer to `CONTRIBUTING.md`_.\n\nLicense\n-------\n\njsonnet-lang-for-gazelle is available under the `Apache 2 license`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fjsonnet-lang-for-gazelle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmware%2Fjsonnet-lang-for-gazelle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fjsonnet-lang-for-gazelle/lists"}