Skip to content

Latest commit

 

History

History
82 lines (69 loc) · 1.78 KB

README.md

File metadata and controls

82 lines (69 loc) · 1.78 KB

Perforce Rules for Bazel (αlpha)

Setup

  • Decide on the name of your package, eg. github.com/joe/project

  • Add the following to your WORKSPACE file:

    git_repository(
        name = "com_dsfishlabs_rules_perforce",
        remote = "https://github.com/DeepSilverFishlabs/bazel_rules_perforce.git",
    )
    load("@com_dsfishlabs_rules_perforce//perforce:def.bzl", "p4_repository")
    
    p4_repository(
        name = "content",
    )

p4_repository

p4_repository(name, stream, revision)

Syncs the perforce revision, expecting it contains BUILD files.

Attributes
name String, required

A unique name for this external dependency.

new_p4_repository

new_p4_repository(name, stream, revision, build_file)

Sync a remote repository of a Go project and automatically generates BUILD files in it. It is an analogy to new_git_repository but it recognizes importpath redirection of Go.

Attributes
name String, required

A unique name for this external dependency.