bazelbuild/bazel

Documentation issue: Repository Rules

Open

#10.979 geöffnet am 18. März 2020

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-Documentationteam-ExternalDepstype: documentation (cleanup)

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Documentation URL: https://docs.bazel.build/versions/2.1.0/skylark/repository_rules.html

The example implementation of local_repository does not work with bazel 2.1.1 when "path" is specified as relative path to the calling workspace. Yielding error: "rule //external:<repository_name> must create a directory".

Manual inspection of the repository path found repository_ctx.attr.path being resolved as relative path to the repository directory instead of the workspace directory in repository_ctx.symlink.

Also, is there a way to manually resolve a path relative to workspace directory?

Contributor Guide