Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e45de10

Browse files
committedOct 30, 2024·
update commands in README.md to those that work
1 parent cbd9daa commit e45de10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,14 @@ pants test helloworld/translator/translator_test.py -- -k test_unknown_phrase #
139139

140140
## Create a PEX binary
141141

142+
The `package` goal requires specifying a target which can be packaged. In this case, the there is a `pex_binary` target with the name `pex_binary` in the `helloworld/BUILD` file.
143+
142144
```
143-
pants package helloworld/main.py
145+
pants package helloworld:pex_binary
144146
```
145147

148+
The pex file is output to `dist/helloworld/pex_binary.pex` and can be executed directly.
149+
146150
## Run a binary directly
147151

148152
```

0 commit comments

Comments
 (0)