Skip to content

Commit

Permalink
Update docs on running pants from sources with scie-pants. (pantsbuil…
Browse files Browse the repository at this point in the history
  • Loading branch information
benjyw authored Mar 15, 2023
1 parent 3b96362 commit 213b19f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ This allows you to iterate rapidly when working in the Pants repo: You can edit
Running Pants from sources in other repos
-----------------------------------------

Sometimes you may want to try out your Pants changes on code in some other repo. You can do so with a special `./pants_from_sources` script that you copy into that repo.
Sometimes you may want to try out your Pants changes on code in some other repo. If you're using the `pants` launcher binary, you can set the env var `PANTS_SOURCE` to point to your local clone of the pantsbuild/pants repo:

```
PANTS_SOURCE=../pants pants test ::
```

Or, if you're using a `./pants` runner script, you can instead use a special `./pants_from_sources` script that you copy into the repo.

This script expects to find a clone of the Pants repo, named `pants`, as a sibling directory of the one you're running in, and it will use the sources in that sibling to run Pants in the other repo, using that repo's config file and so on.

Expand Down

0 comments on commit 213b19f

Please sign in to comment.