Skip to content

Commit 0cd5715

Browse files
authored
Update Poetry package firewall command and output (#295)
This change updates the command to use to add the `phylum` source repo so that it makes use of the `--priority primary` option, which will be required in a future release of Poetry and makes it more explicit now. The output when **all** versions of a package are blocked is also updated to match the current output text when this happens.
1 parent f0f5a24 commit 0cd5715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/package_firewall/pypi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ With Poetry, the source URL can be configured per-project in the
6161
directory:
6262

6363
```sh
64-
poetry source add phylum https://pypi.phylum.io/simple/
64+
poetry source add --priority primary phylum https://pypi.phylum.io/simple/
6565
poetry config http-basic.phylum "<PHYLUM_ORG>%2F<PHYLUM_GROUP>" "<PHYLUM_API_KEY>"
6666
```
6767

@@ -79,7 +79,7 @@ If **all** versions of a package are blocked, it will be explicitly pointed out
7979
as having failed analysis:
8080

8181
```text
82-
424 Client Error: "malicious" failed Phylum analysis for url: https://pypi.phylum.io/simple/malicious/
82+
424 Client Error: Failed Dependency for url: https://pypi.phylum.io/simple/malicious/
8383
```
8484

8585
If a version range is accepted by the manifest, the package manager will

0 commit comments

Comments
 (0)