update-workspace-snippets

command module
v0.0.0-...-e42a1e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

update-workspace-snippets

update-workspace-snippets is a small tool to update README snippets for Bazel WORKSPACE and MODULE.bazel files. See the Go package documentation for details and usage instructions.

This is not an officially supported Google product.

Documentation

Overview

Binary update-workspace-snippets automatically updates snippets for Bazel WORKSPACE and MODULE.bazel files. These snippets should follow the format described in https://bazel.build/rules/deploying#readme.

Usage

A command like

update-workspace-snippets filename…

updates the specified files so that the workspace and module snippets in these files point to the latest commit available on GitHub. Right now this only supports commits on the master branch; releases aren’t supported yet. The current directory must be in a Git repository that has exactly one remote pointing to a GitHub repository. The listed files should contain at least one “git_override” or “http_archive” stanza pointing to the GitHub repository. The program also updates comments within the stanza that look like dates.

Invoke this program after pushing to GitHub. Since it modifies the workspace, you’ll typically need to commit and push again, but since it only updates documentation, pointing to the previous commit is fine.

Directories

Path Synopsis
Package updater contains the type [Updater] to update Bazel workspace and module snippets.
Package updater contains the type [Updater] to update Bazel workspace and module snippets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL