You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

src.tricot.io/public/bazel2x

Package Overview
Dependencies
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src.tricot.io/public/bazel2x

Go Modules
Version
v0.0.0-20210328074246-e60079548024
Version published
Created
Source

tricot-io/bazel2x

Overview

Bazel2x supports converting Bazel BUILD files to other formats. You should think of it as more of a toolkit for writing a converter than a converter itself.

It consists of two parts. First, the "frontend" executes Bazel BUILD (and WORKSPACE) files (loading .bzl files as necessary) and creates (rule) targets (in memory). Second, a "backend" converter takes the in-memory targets and produces output files.

Currently there is only one backend converter, which supports conversion to CMake (CMakeLists.txt) files. This conversion is quirky and supports only our use-cases (and is written by CMake novice); it is expected to evolve as the requirements become better understood.

TODOs

  • Tests.
  • Documentation.
  • More complete implementations of basic Bazel concepts including, e.g.:
    • glob()
    • configurations and select()
    • depsets
    • more (native) rules
    • better understanding of different types of targets (e.g., rule targets vs file targets)

FAQs

Package last updated on 28 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts