Skip to content

abergmeier-dsfishlabs/bazel_rules_perforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages